Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Dear All,
I have a data like this,
Sample File is attached for your ref: Sample PBIX
In this what I have already calculated is --> "The Maximum Sales". Referring to the above image, Maximum of Sales column is 7 out of 11 which is the total sales count. So, out of 11, i have maximum sales = 7. Refer the below measure used,
Maximum Sales = CONCATENATE ( "Maximum Sales ", "(" & MAXX ( VALUES ( 'Table'[Sales] ), CALCULATE ( COUNT ( 'Table'[Sales] ) ) ) & " / " & COUNTROWS ( 'Table' ) & ")" )
Now, What i wanted is, to get the each value of Reasons contributing to the Maximum Sales in a Card Visual. How can i achieve this in an easy way? Is there any other alternative way to achieve this in an wasy manner. Or, split this formula into separate parts I mean, the different measures for my easy understanding. Kindly request you to elaborate if possible that would be really helpful to me to understand what is going on each steps. Please help me. This is urgent.
Measure = CONCATENATEX ( TOPN ( 1, SUMMARIZE ( 'Table', [Sales], 'Table'[Reason], "Max Sales", COUNT ( 'Table'[Sales] ) ), CALCULATE ( MAXX ( VALUES ( 'Table'[Sales] ), CALCULATE ( COUNT ( 'Table'[Sales] ) ) ), ALLEXCEPT ( 'Table', 'Table'[Sales] ) ), DESC ), [Max Sales] & " - " & [Reason], UNICHAR ( 10 ), [Max Sales], DESC )
Thanks & Regards,
Praveen.
Solved! Go to Solution.
Here is a measure to solve your problem
Here is a measure to solve your problem
I hope the measure worked for you, please accept it as a solution
Thanks
User | Count |
---|---|
116 | |
73 | |
60 | |
48 | |
48 |
User | Count |
---|---|
171 | |
122 | |
60 | |
59 | |
56 |