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
SantoshKumar
Employee
Employee

How to Hide Current Month Details in a chart

Hi All,

 

I have Few Charts as follows where i display Data for all the months, but i need to provide a condition so that it will not show details excluding current month.

For example: Since it is June month running so my below chart should show details upto May only by excluding June data.

HowToHideCurrentMonth.PNG

i have tried the option like : Filters in Visualization but they are getting reset once i close and open the report again.

Could i get any help on it.

 

Thanks

Santosh

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @SantoshKumar ,

 

You can create a measure similar to below, add it to visual level filter of the chart and set its value to 1.

Measure= IF(MAX(Sample1[Date])<DATE(YEAR(TODAY()),MONTH(TODAY()),1),1,0)

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yulgu-msft
Employee
Employee

Hi @SantoshKumar ,

 

You can create a measure similar to below, add it to visual level filter of the chart and set its value to 1.

Measure= IF(MAX(Sample1[Date])<DATE(YEAR(TODAY()),MONTH(TODAY()),1),1,0)

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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.