Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Dear Community,
i would like to have a Menu or something like this in my report to make a Measure/DAX more flexible/interactive.
Example:
Here -1 is fixed.
In the published report, the user should be able to choose to go back 1, 2 or 3 months back. So a menu with a list of Values (1..3) would be fine. This menu should pass its selection to the Measure. Is this possible?
Note: I found this solution, but this sends a parameter to Power Query and is not accessible in the published report.
Regards, Michael
Solved! Go to Solution.
Well that was weird. Checking out your file, the measure was indeed unresponsive. I've deleted and created the parameter table, selection measure etc and it now works:
I've attached the sample file
Proud to be a Super User!
Paul on Linkedin.
Create a new table to use as the slicer to select the month number using the New Table function under Modeling in the ribbon with:
Select Month = {1, 2, 3}
Create the slicer with the single select option in the formatting pane.
Create the following measure:
Month =SELECTEDVALUE (Select Month[Value]) *-1
now substitute the hard coded -1 in your measure with the [Month] measure
Proud to be a Super User!
Paul on Linkedin.
Thanks a lot for that great Idea!
Unfortunately, inserting the measure into my expression shows no effect. Hard coded value does.
I also tried to put the [Month] measure into VALUE() to make sure its a number, but still no effect.
Here ist the testfile. Any suggestion?
Well that was weird. Checking out your file, the measure was indeed unresponsive. I've deleted and created the parameter table, selection measure etc and it now works:
I've attached the sample file
Proud to be a Super User!
Paul on Linkedin.
Hey Paul, thats great, thank you very much!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
93 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |