The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
I created two option: "By Revenue" and "By Unites".
Now I want when user will click on "By Revenue" my table show all information in Desc by Revenue,
When filter will changed to "By Unites" my table show all information in Desc by Unites.
Solved! Go to Solution.
Hi @Anonymous ,
By my test, there is a measure you can have a try. And you have to sort by the measure.
1.By Revenue = SUM(Table1[Revenue])
2.By Unites Sold = SUM(Table1[Units Sold])
3.Measure =
VAR se = SELECTEDVALUE ( 'order'[Order] )
RETURN
IF (ISBLANK ( se ), BLANK (),
IF ( se = "By Revenue",
RANKX ( ALL ( Table1 ), [By Revenue],, DESC, DENSE ),
RANKX ( ALL ( Table1 ), [By Unites Sold],, DESC, DENSE )
)
)
Choose the visual --> sort by the measure you created.
Then you get the visual you want.
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
By my test, there is a measure you can have a try. And you have to sort by the measure.
1.By Revenue = SUM(Table1[Revenue])
2.By Unites Sold = SUM(Table1[Units Sold])
3.Measure =
VAR se = SELECTEDVALUE ( 'order'[Order] )
RETURN
IF (ISBLANK ( se ), BLANK (),
IF ( se = "By Revenue",
RANKX ( ALL ( Table1 ), [By Revenue],, DESC, DENSE ),
RANKX ( ALL ( Table1 ), [By Unites Sold],, DESC, DENSE )
)
)
Choose the visual --> sort by the measure you created.
Then you get the visual you want.
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.