Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi, On the right side is my data and on the left side is the result that i am looking for. I try to set up a filter that only count completely cancel colorway which means the brand has that color but only do with cancel, no improve/ ok
thank you so much for helping me.
Solved! Go to Solution.
Thanks @tyan
In that case, your percentage measures can be something like:
Colorway Cancellation % =
DIVIDE (
[Completely cancel coloway],
CALCULATE ( DISTINCTCOUNT ( Data[Color] ), ALLSELECTED ( ) )
-- ALLSELECTED seems to be what you want but you could use ALL to ignore all filters
)
Thanks @tyan
In that case, your percentage measures can be something like:
Colorway Cancellation % =
DIVIDE (
[Completely cancel coloway],
CALCULATE ( DISTINCTCOUNT ( Data[Color] ), ALLSELECTED ( ) )
-- ALLSELECTED seems to be what you want but you could use ALL to ignore all filters
)
Hi @tyan
For your first measure, you can write this:
Completely cancel coloway =
SUMX (
SUMMARIZE ( Data, Data[Brand], Data[Color] ),
INT ( CALCULATE ( SELECTEDVALUE ( Data[analysis] ) = "cancel" ) )
)
This measure takes each combination of Brand & Color, and counts how many of these combinations have the single distinct value of analysis = "cancel", which should be equivalent to what you are wanting to calculate.
I wasn't sure on the logic behind the denominator in your percentage measure (6 in your example). How is that defined?
Regards,
Owen
@OwenAuger Hi thank you for helping me, It should be 5 instrand of 6 it is the total amount of color. it is unique not count twice. so it is red, blue, green,black, pink.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 11 | |
| 9 | |
| 9 | |
| 8 |