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.
Hello,
there are 10 delivery schedules, they are ranked 1-10 (1 = current, 2=last,...)
I want to select 2 of them and compare them.
I am able to write a measure to compare for example Rank1 and Rank2.
My question:
I want to select 2 schedules (schedule A/schedule B). Ich want to compare selection A with selection B. How would this measure look like?
Thank you! Greetings from Austria
Veronika
Check if my solution satisfies your scenario.
slicer1 = VALUES('Table'[schedules]) slicer2 = VALUES('Table'[schedules])
selected value = CALCULATE ( SUM ( 'Table'[value] ), FILTER ( 'Table', 'Table'[schedules] = SELECTEDVALUE ( slicer1[schedules] ) || 'Table'[schedules] = SELECTEDVALUE ( slicer2[schedules] ) ) ) rank = IF ( MAX ( 'Table'[schedules] ) = SELECTEDVALUE ( slicer1[schedules] ) || MAX ( 'Table'[schedules] ) = SELECTEDVALUE ( slicer2[schedules] ), RANKX ( FILTER ( ALL ( 'Table' ), 'Table'[schedules] = SELECTEDVALUE ( slicer1[schedules] ) || 'Table'[schedules] = SELECTEDVALUE ( slicer2[schedules] ) ), [selected value], , ASC, DENSE ) )
User | Count |
---|---|
84 | |
73 | |
67 | |
42 | |
35 |
User | Count |
---|---|
109 | |
56 | |
52 | |
45 | |
43 |