Hello All,
We are not able to calculate the below requirement. Please guide us.
We want the requirement as :
a) 5 divided by 7 and the result should be 71%
b) 5 divivded by 20 and the result should be 25%
c) 16 divivded by 31 and the result should be 52%
d) 55 divided by 63 and the result should be 87%
Thanks in Advance.
Regards,
Vivek Chavan.
Solved! Go to Solution.
Hi @VivekC
You may try to use HASONEVALUE Function to create measures to get the percent as requested. For example:
Percent1 = IF ( HASONEVALUE ( total[Index] ), MAX ( total[a] ), DIVIDE ( SUMX ( FILTER ( total, total[Index] = 1 ), total[a] ), SUMX ( FILTER ( total, total[Index] = 2 ), total[a] ) ) )
Regards,
Cherie
Hi @VivekC
You may try to use HASONEVALUE Function to create measures to get the percent as requested. For example:
Percent1 = IF ( HASONEVALUE ( total[Index] ), MAX ( total[a] ), DIVIDE ( SUMX ( FILTER ( total, total[Index] = 1 ), total[a] ), SUMX ( FILTER ( total, total[Index] = 2 ), total[a] ) ) )
Regards,
Cherie
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.
Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!
User | Count |
---|---|
351 | |
100 | |
64 | |
54 | |
47 |
User | Count |
---|---|
339 | |
125 | |
88 | |
66 | |
66 |