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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Prabha45
Helper III
Helper III

Slicer not affecting current month data

Hi All,
I have a card which shows current month data and I have slicer and 4 other visuals in the same page. Is it possible to make the current month card data to change based on the slicer and show current month data when nothing is selected in the slicer ?

TIA

1 ACCEPTED SOLUTION
Gayatri_D05
Resolver II
Resolver II

Hi @Prabha45 ,
I tried the solution on my dummy data 
When nothing is selected on the slicer it shows the max month or current month data:

Gayatri_D05_0-1707396237821.png

When value selected it shows the respective data 

Gayatri_D05_1-1707396289716.png


I am displaying a measure called value in the card which is created using the following logic :

Value = if(not(isfiltered('month'[Month])), CALCULATE(SUM('month'[Values]), FILTER('month','month'[Month]=MAX('month'[Month]))),CALCULATE(SUM('month'[Values])))


Hope this works on your data as well.
If your requirement is solved, please make THIS ANSWER as SOLUTION and help other users find the solution quickly. Please hit the LIKE button if this comment helps you.😊

View solution in original post

1 REPLY 1
Gayatri_D05
Resolver II
Resolver II

Hi @Prabha45 ,
I tried the solution on my dummy data 
When nothing is selected on the slicer it shows the max month or current month data:

Gayatri_D05_0-1707396237821.png

When value selected it shows the respective data 

Gayatri_D05_1-1707396289716.png


I am displaying a measure called value in the card which is created using the following logic :

Value = if(not(isfiltered('month'[Month])), CALCULATE(SUM('month'[Values]), FILTER('month','month'[Month]=MAX('month'[Month]))),CALCULATE(SUM('month'[Values])))


Hope this works on your data as well.
If your requirement is solved, please make THIS ANSWER as SOLUTION and help other users find the solution quickly. Please hit the LIKE button if this comment helps you.😊

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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