Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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.
User | Count |
---|---|
16 | |
14 | |
13 | |
12 | |
11 |
User | Count |
---|---|
19 | |
15 | |
15 | |
11 | |
10 |