Forum Discussion
Use slicer selection in a function
You could make two What If Parameters from 1-24 (hours); see the Modeling tab. That will make two new tables and add slicers to the report. There will also be measures created to harvest the selected values. You can then add a variable to your measure that calculates the difference between those two whatif measures.
If this works for you, please mark it as solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
I've also created two tables through the What if parameter and added a measure with a variable that returns the time difference between the two hours selected in the two slicers... and it worked, I'm able to see the correct value on a card
My problem is that I don't know how (and if possible) to use this value in a function in a computed column like the one indicated in my post. How can I use my VAR in this function instead of the number 10?