March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello Power BI-Folks,
currently I am trying to do the following:
I have a report with a card visual. There is a tooltipp on the card that shows the average order value over time. I have selected Year-Month as the standard X-Axis of the tooltip visual.
On the right hand side I have a year slicer. Now my problem is:
I want the dimension in the tooltip to be dynamically. When year slicer value is "All" I want the dimension on the X-Axis to be Year.
And when I choose a specific year, I want the dimension on the X-Axis to be Month.
I tried it with field parameters, but this doesn't seem to work... Do you guys have any idea? 🙂
Solved! Go to Solution.
Hi @ahanfouf
A type of automatic selection can be achieved with field parameters and another small manipulation with Dax.
Please follow these steps:
1. create field parameters for months /years
2. create a measure for "automation"
3. filter put field parameter as axis X and filter by this flag :
*Works perfectly as a tooltip too.
To follow my steps, here's a link to my file with an example:Link
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Thanks for this quick and very helpful answer @Ritaf1983 ! 🙂 It really works like a charm.
There is only 1 thing I am struggling with:
I need this dynamic value also in my sparkline visual.
Is this also possible ? I tried to replace the Monat column with the Field Parameter, but I couldn't make it work...
I thought that I just need a DAX Measure exactly the same as the Top1 visual filter, but I couldn't extract the Field Parameter inside a measure ?!
Do you have any idea ? This is the link where I copied the Sparkline DAX Code: Link
Thank you anyways very much in advance!!! 😊
Hi @ahanfouf
I don't think it is possible with sparkline,
as an alternative combine cards with the regular line chart .
I have these combinations in my dashboards and it looks great.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi @ahanfouf
A type of automatic selection can be achieved with field parameters and another small manipulation with Dax.
Please follow these steps:
1. create field parameters for months /years
2. create a measure for "automation"
3. filter put field parameter as axis X and filter by this flag :
*Works perfectly as a tooltip too.
To follow my steps, here's a link to my file with an example:Link
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |