Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi,
I am trying to order one table by date using RankX() but taking into account that when the value is the same on column "Name" the output should be the same and that I only want to order when value at column "Task" is "PUBLISH". It's a bit difficult to explain so I show it with a table and the desired output.
Thank you in advance!
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
Rank CC =
VAR _newtable =
FILTER ( Data, Data[Task] = "PUBLISH" )
VAR _rankcolumn =
SUMMARIZE (
ADDCOLUMNS (
_newtable,
"@rank", COUNTROWS ( FILTER ( _newtable, Data[Date] <= EARLIER ( Data[Date] ) ) )
),
Data[Name],
[@rank]
)
RETURN
MAXX ( FILTER ( _rankcolumn, Data[Name] = EARLIER ( Data[Name] ) ), [@rank] )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Thank you very much! It works perfectly fine 😄
For fun only, a showcase of powerful Excel worksheet formula,
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Hi,
Please check the below picture and the attached pbix file.
Rank CC =
VAR _newtable =
FILTER ( Data, Data[Task] = "PUBLISH" )
VAR _rankcolumn =
SUMMARIZE (
ADDCOLUMNS (
_newtable,
"@rank", COUNTROWS ( FILTER ( _newtable, Data[Date] <= EARLIER ( Data[Date] ) ) )
),
Data[Name],
[@rank]
)
RETURN
MAXX ( FILTER ( _rankcolumn, Data[Name] = EARLIER ( Data[Name] ) ), [@rank] )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
12 | |
10 | |
10 | |
8 |
User | Count |
---|---|
16 | |
15 | |
14 | |
12 | |
10 |