Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello helpful community,
Given the speed at which Power BI updates are made, most of the previous posts on this are no longer helpful as they reference interfaces that do not exist at this time (such as parts of this https://www.mssqltips.com/sqlservertip/6850/power-bi-slicer-dynamic-visuals/)
Here is my situation: I have time-series data and want to show index-scores across time by country.
Therefore, X-axis=year, Y-axis=indexscore, Legend=country name. My slicer has "country". I would like a blank graph to show until I select a country. Unfortunately, after having tried numerous different types of filters including INT(ISFILTERED(Table[country])) then putting this measure into the visual's filter and doing the whole 'show items when the value is =1, apply filter... I cannot get any DAX to work.
Any insight onto how to get this to work? Do I need to include an "isfiltered" condition on "year" as well? I would prefer not to. I'd like to only have the user select a country in the slicer, and see the country's change in score over time.
Thank you!
Solved! Go to Solution.
Thanks @Anonymous - for some reason, I could not get your solution to work. However, I connected with a colleague and here was the solution that worked for me in the end:
1. Create the measure for a "blank" line graph:
Hi @Anonymous ,
I think this should be caused by you add [Country] into Legend Field. Here I suggest you to create an unrelated DimCountry table in your report.
DimCountry =
VALUES(Sheet1[Country])
Relationship:
Then try this measure.
Measure =
VAR _SELECTION = VALUES(DimCountry[Country])
RETURN
IF(ISFILTERED(DimCountry[Country]),CALCULATE(SUM(Sheet1[Value]),FILTER(Sheet1,Sheet1[Country] in _SELECTION)),BLANK())
Result is as below.
By Default:
Select Country in Slicer:
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks @Anonymous - for some reason, I could not get your solution to work. However, I connected with a colleague and here was the solution that worked for me in the end:
1. Create the measure for a "blank" line graph:
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
67 | |
60 | |
51 | |
36 | |
36 |
User | Count |
---|---|
83 | |
72 | |
58 | |
45 | |
44 |