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,
After posting previous question about bar chart comparison which use two slicers previously, I thought of making my visual more neat... thus I thought of using a single slicer which allow user to select the multiple date they want to compare and the DAX will use the lastDate from those selected value as the Base Value to compare against the other date, and find out the differences in revenue in those date.
E.g if user selected 13 May & 10th Jun, then the variance value should be 225.18.
But my current DAX does not seem to work that way, what is missing in my DAX? Looking for all the expert advise.
Many thanks again & your patience too.
Val
Solved! Go to Solution.
@valWork
Sorry, it seems I didn't press ok or something.
I attached the pbix to this response you can download it now.
Hi @valWork
You are unable to calculate two different measures based on the same slicer due to the relationship between the calendar table and the main table. There are conflicting contexts here.
If you are interested in comparing based on a selection from one slicer, you can use a "disconnected" calendar table.
And then create measures like :
The pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Thanks for the advise, I shall give it a try. I could not find the pbix, not sure if I miss out anything.
MAny thanks again.
@valWork
Sorry, it seems I didn't press ok or something.
I attached the pbix to this response you can download it now.
User | Count |
---|---|
85 | |
79 | |
64 | |
52 | |
46 |
User | Count |
---|---|
101 | |
44 | |
41 | |
39 | |
36 |