Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Alex_0201
Post Partisan
Post Partisan

Blank chart as default

Hi everyone. How does one make a chart (in this case line chart) blank unless a slicer value is selected?

Here is how it looks now. It's confusing for engineers due to aggregation of MD:

 

1.PNG

Here is how it should like before choosing a slicer on the left and after having chosen one - on the right:

 

2.PNG3.PNG

 

 

 

 

 

 

 

 

 

 

 

 

Thanks in advance!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Alex_0201 , Try like

new MD By Days= if(isfiltered(Table[Well]),[MD By Days],blank())

 

refer

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Alex_0201 , Try like

new MD By Days= if(isfiltered(Table[Well]),[MD By Days],blank())

 

refer

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

hi @amitchandak what is [MD By Days]? Is it [Table2[MD] By Table3[Days])?

 

Hi @Alex_0201 

 

 

M_MD = IF(HASONEFILTER('Table'[Well]),SUM('Table'[MD]),BLANK())

 

Result:

Blank chart as default:

 2.png

Select the slicer.

3.png

You can download the pbix file from this link: Blank chart as default

 

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. 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.