The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
My data has years 2018 to 2021. I am comparing sales with the previous years and have created different DAX for that but for dynamic header based on selection of year, I am using below mentioned DAX but not getting the required result;
Selected value = Calendar Year (filter)
Solved! Go to Solution.
Hi @Saadahmedqu
Thanks for reaching out to us.
please use the sample file attached below
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi @Saadahmedqu
Thanks for reaching out to us.
please use the sample file attached below
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Based on my test your measure seems to be working. Here is an improved dax using variables:
If this still doesn't work I recommend cheking what filters affect your visuals. The issue might be there.
Proud to be a Super User!
Thank you so much for your reply. I have used your solution also but even then it is not displaying result in card
The card displayed above based on selection is DAX used by me and the second card displaying cross sign is the query you provided. I think the problem is with multiple conditions based on the selection with hasvalue. There are no filters applied on visuals or page.
Below is the solution provided by you;
Can this issue be solved by fixing it to min year criteria?
User | Count |
---|---|
28 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |