What is the difference between sorting by date column versus custom sort column? - sorting

I am looking at a Power BI model and the sort is based on a sortcolumn as shown in the below screenshot.
My question is - What is the difference between sorting by date column versus custom sort column?

The only difference is that the Sort column considers year and month only, while sorting by Date will consider days and hours too.

Related

Sorting columns of a table in Tableau

I am looking to sort the following table in Tableau by risk rating and date. For risk rating in can bethe form of Low-Medium-High or the other way round and for the date it is from earliest to latest and the other way round. I understand that Tableau does some kind of nesting from left to right such that it only sorts the leftmost column. How can I overcome that such that a user can do a sort with as little effort as possible (perhaps in the form of a button?)

DAX Group By DateDiff Segments

I am writing a DAX query for use in SSRS dataset.
I have a requirement to calculate the date difference between a dimension date column and today(), then group these into segments, I.e. 1-7 days, 7-10 days etc - and return the segment for each row in the table (with other additional filters)
As it’s for use in SSRS I’m using EVALUATE(SUMMARIZECOLUMNS
A switch statement won’t work for value ranges in DAX and when I use nested If statement the query uses all available memory.
Is there a function I can use for to group by the calculated column into segments.
Any advise appreciated.
Thanks
W

Where does DAX MTD calc go?

The stack is SQL relational tables into SQL 2014 Tabular consumed by Excel 2010.
The Tabular model grain is one row per purchase order (PO) line item. Each row has a dollar value (item cost$) which is used for a sum measure (total cost$).
A Time Intelligence Date table is related so the sum of total costs$ for a year can be determined for example.
How best to implement a month to date aggregate? Should a DAX query against the model calculate the MTD on the fly as I pull the data in Excel? Or is there a way to implement directly into the model at the PO line item grain?
I personally would stick a calculated measure in the model itself using TOTALMTD() - you could always just use SQL and do it in the back end though. Calculated measures are generally pretty efficient - your model would have to be huge before you start seeing performance issues with them so I wouldn't worry too much

How to get minimum value from range date in DAX

I need to get a calculated measure of the minimum date of a range of values, ie I have a fact table with a date and two measures. When I filter by range date, I need to get the second measure of the minimum date of that range, in the example, the measure 1 of 1st january, something like this:
https://db.tt/6jKBPRCr
The picture on the left is as I have the data in the fact table, data from the right as they should be when I filter from date (from 1st to 6 january). The measure 1 is added for a group, and measure 2 is the minimum value of the range of dates and must be repeated for each resulting record (highlighted).
I need the solution for PowerBI Desktop (DAX)
I would greatly appreciate your help with this.
Thank you for your time

How do I sort an Excel 2010 pivot table based on a subset of the data it contains?

I have an Excel 2010 pivot table that has categories and a count measure as the data. Those categories then have a date dimension nested underneath, filtered to show only the last two months.
When I sort the categories, I am sorting them by the total of the count measure across both June and July, in descending order.
Can anyone suggest how I can sort the categories based on the June data alone, as opposed to the total for both June and July?
Thanks!
Your questions is not related to Sql Server Analysis Services. SSAS provides multidimensional data that is also used by pivot tables as datasource. So that's why you have seen pivot table questions here. But they are not Excel related.
Anyway, i want to try to answer your question. As far as i understand your question, changing the order of the dimensions in your pivot table will be sufficient to achieve your goal. Add the date dimension to the pivot table first and then the category dimension to get your data grouped by date (month). You may then sort by categories to get the result you want.
Hope this help.

Resources