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,
I'm trying to build a table to show sales ratio % where we've used particular suppliers against all sales with any suppliers. This is year to date.
I've tried using ALLEXCEPT in a measure for all sales with any suppliers:
Solved! Go to Solution.
Hi @Anonymous ,
We can use the following measure to meet your requirement:
KeySuppRatio% = DIVIDE ( [KeySuppYTD], IF ( COUNTROWS ( 'Users' ) <> COUNTROWS ( ALL ( 'Users'[FullName] ) ), CALCULATE([TotalSalesYTD],ALLSELECTED('KeySuppliers')), [TotalSalesYTDAllExcept] ), 0 )
BTW, pbix as attached.
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
We can use the following measure to meet your requirement:
KeySuppRatio% =
DIVIDE (
[KeySuppYTD],
IF (
COUNTROWS ( 'Users' ) <> COUNTROWS ( ALL ( 'Users'[FullName] ) ),
[TotalSalesYTD],
[TotalSalesYTDAllExcept]
),
0
)
If it doesn't meet your requirement, Please show the exact expected result based on the Tables that you have shared.
BTW, pbix as attached.
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks. You can get the same result using
Hi @Anonymous ,
We can use the following measure to meet your requirement:
KeySuppRatio% = DIVIDE ( [KeySuppYTD], IF ( COUNTROWS ( 'Users' ) <> COUNTROWS ( ALL ( 'Users'[FullName] ) ), CALCULATE([TotalSalesYTD],ALLSELECTED('KeySuppliers')), [TotalSalesYTDAllExcept] ), 0 )
BTW, pbix as attached.
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you. That's just what I was looking for
That's going to really help my users. Brilliant!
@v-lid-msft wrote:Hi @Anonymous ,
We can use the following measure to meet your requirement:
KeySuppRatio% = DIVIDE ( [KeySuppYTD], IF ( COUNTROWS ( 'Users' ) <> COUNTROWS ( ALL ( 'Users'[FullName] ) ), CALCULATE([TotalSalesYTD],ALLSELECTED('KeySuppliers')), [TotalSalesYTDAllExcept] ), 0 )
BTW, pbix as attached.
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
108 | |
106 | |
87 | |
77 | |
69 |
User | Count |
---|---|
123 | |
112 | |
95 | |
83 | |
73 |