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
0Experience
Helper I
Helper I

Refinement of Dashboard Visualization (Simple Filter Option)

Hello,

 

Currently, I have a simple dashboard with the following data:

 

YearTypeStatisticsValue
2018CapActual23
2018DVActual35
2018FTVActual65
2018TotActActual125
2019CapActual13
2019DVActual25
2019FTVActual236
2019TotActActual1540

 

Currently, I have a slicer that displays only 'Cap,' 'DV,' and 'FTV' from the Type column, excluding 'TotAct.' Moreover, I have a column chart (and a Card) visualizing the sum of the Value.

 

As it stands, when no option is selected from the slicer, the chart correctly shows the summation for all data in the Statistics column, including 'TotAct.' However, I propose a refinement to the chart behavior.

 

The updated preference is as follows: when no selection is made in the slicer, the chart should only display the 'TotAct' value. Conversely, if any option is selected from the slicer, the chart should reflect the chosen value.

 

The same principle applies to the Card element on the dashboard. If an option is selected from the slicer, the Card should display the corresponding value. In the absence of a selection, it should exclusively show the 'TotAct' value.

 

Thank you for your attention to this matter.

1 ACCEPTED SOLUTION
sayaliredij
Super User
Super User

Hi @0Experience 

 

Please try following measure and use it in the column chart and card

 

Measure = IF(HASONEFILTER('Table'[Type]),SUM('Table'[Value]),CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[Type] = "TotAct")))
 

Thanks and Regards,

Sayali

Please mark the question solved when done and consider giving a thumbs up if posts are helpful!! 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
sayaliredij
Super User
Super User

Hi @0Experience 

 

Please try following measure and use it in the column chart and card

 

Measure = IF(HASONEFILTER('Table'[Type]),SUM('Table'[Value]),CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[Type] = "TotAct")))
 

Thanks and Regards,

Sayali

Please mark the question solved when done and consider giving a thumbs up if posts are helpful!! 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.