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.
Hello All,
I'am trying to do something, I thought would be simple but its not working.
I want to know how to get sub total and total:
I tried to use sumx and filter, but its not working:
Solved! Go to Solution.
Hi @akhmad_danial ,
As under "Contract",there is no value,so if you wanna show as you posted,you'd better create a table as below first:
Table 2 = SUMMARIZE('Table','Table'[Status],'Table'[Custom])
Then create a measure as below:
Measure 2 = IF(ISINSCOPE('Table'[Gender]),COUNT('Table'[Gender]),CALCULATE(COUNT('Table'[Gender]),FILTER(ALL('Table 2'),'Table 2'[Custom]<=MAX('Table 2'[Custom]))))
And you will see:
For the related .pbix file,pls click here.
Hi @akhmad_danial ,
As under "Contract",there is no value,so if you wanna show as you posted,you'd better create a table as below first:
Table 2 = SUMMARIZE('Table','Table'[Status],'Table'[Custom])
Then create a measure as below:
Measure 2 = IF(ISINSCOPE('Table'[Gender]),COUNT('Table'[Gender]),CALCULATE(COUNT('Table'[Gender]),FILTER(ALL('Table 2'),'Table 2'[Custom]<=MAX('Table 2'[Custom]))))
And you will see:
For the related .pbix file,pls click here.
Thanks @Anonymous it worked.
Regards,
Akhmad
Hi @akhmad_danial ,
Can you please share some sample data and your actual table snapsot?
Understand this is a visualzation snapshot which you have posted.
Regards,
HN
Hi @harshnathani ,
Thank you for the respons.
This is snapsot table,
i think when i sort the data employement status, the value has changed.
Hope this helps.
Thank you.
Hi @akhmad_danial ,
Based on my test,in matrix ,you can only achieve the below result.
For the field,settings should be as below:
For the related .pbix file,pls click here.
Hi @Anonymous ,
Thank you for your response.
I already to set row sub total before but the result not as expected.
I want to calculate (like this, click here) :
Subtotal = Permanent (Male + Female) + Dir (Male + Female) + Expat (Male + Female)
Total = Subtotal + Contract (Male + Female)
This is pbix file
Regards,
Akhmad
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 |