March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
How can i create a measure to get the result as shown in the below table? I don't want to use show value as % of grand total.
Table
Mode |
Online |
Offline |
Online |
Online |
Online |
Offline |
Offline |
Offline |
Offline |
Offline |
Result
Mode | Count |
Online | 4 |
Offline | 6 |
Mode | Percentage |
Online | 40% |
Offline | 60% |
Solved! Go to Solution.
Hello @InsightSeeker ,
You have to create a measure for the same as below:
Percentage Contribution =
Var A = COUNTA('Table'[Mode])
Var B = CALCULATE(COUNTA('Table'[Mode]),ALL('Table'))
Return
DIVIDE(A,B,0)
Output looks like this:
If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!
To get the % of Offline/Online use this
% = DIVIDE(CALCULATE(COUNTROWS('DataTable'), 'DataTable'[Mode] = SELECTEDVALUE('DataTable'[Mode])), CALCULATE(COUNTROWS(ALL('DataTable'))))
Regards
Phil
Proud to be a Super User!
To get the % of Offline/Online use this
% = DIVIDE(CALCULATE(COUNTROWS('DataTable'), 'DataTable'[Mode] = SELECTEDVALUE('DataTable'[Mode])), CALCULATE(COUNTROWS(ALL('DataTable'))))
Regards
Phil
Proud to be a Super User!
Hello @InsightSeeker ,
You have to create a measure for the same as below:
Percentage Contribution =
Var A = COUNTA('Table'[Mode])
Var B = CALCULATE(COUNTA('Table'[Mode]),ALL('Table'))
Return
DIVIDE(A,B,0)
Output looks like this:
If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!
Hi, you can create a measure to count rows for each mode.
In the table, the mode column & the cnt measure used.
If this resolves your problem, then please mark it as solution, Thanks!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
132 | |
90 | |
88 | |
64 | |
58 |
User | Count |
---|---|
203 | |
141 | |
107 | |
73 | |
70 |