Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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.
User | Count |
---|---|
92 | |
85 | |
76 | |
66 | |
62 |
User | Count |
---|---|
110 | |
96 | |
95 | |
64 | |
57 |