Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I would like to write a new measure to calculate the % of the total for the period. I can calculate the sum score for the whole table, but not by the period. Thanks,
Company Period Score % total for the period
A Q1 2 16.7%
A Q2 3 27.3%
B Q1 4 33.3%
B Q2 5 45.5%
C Q1 6 50%
C Q2 3 27.3%
Solved! Go to Solution.
You may try using ALLSELECTED Function.
Measure = DIVIDE ( SUM ( Table1[Score] ), CALCULATE ( SUM ( Table1[Score] ), ALLSELECTED ( Table1[Company] ) ) )
You may try using ALLSELECTED Function.
Measure = DIVIDE ( SUM ( Table1[Score] ), CALCULATE ( SUM ( Table1[Score] ), ALLSELECTED ( Table1[Company] ) ) )
Hi, try with this measure
% Total for Period = VAR TotalPeriod = CALCULATE ( SUM ( Table1[ Score ] ), ALLEXCEPT ( Table1, Table1[ Period ] ) ) RETURN DIVIDE ( SUM ( Table1[ Score ] ), TotalPeriod )
Regards
Victor
Thanks for your suggestion. I tried it. But, it gave me the sum of the whole table. only If i specific the time period with the slider, they i can get the total sum % at the specific period.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |