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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

Filtering/Slicing Group of measures

Hey,

We are having issues with filtering/slicing group of measures.

Dax formula should work on logic that when selecting dimension (WTD or MTD or YTD) we see in matrix table sliced only measures that are under selected group. In order to slice this we have created table with all measures in example below.

All below measures are held in matrix table, and by default they all can be seen, but after selection they should be sliced to selected value.

There are similar solutions where slicing is based on showing and switching only one measure at a time, but we are having trouble to expand these formulas and slicing to more than one measure that should be switched.

 

All Measures/ Columns that are entered in matrix table - All can be seen by default when selection is not active.

Actual WTD
abs vs LY WTD
% vs LY WTD
abs vs BP WTD
% vs BP WTD
abs vs RE WTD
% vs RE WTD
Actual MTD
abs vs LY MTD
% vs LY MTD
abs vs BP MTD
% vs BP MTD
abs vs RE MTD
% vs RE MTD
Actual YTD
abs vs LY YTD
% vs LY YTD
abs vs BP YTD
% vs BP YTD
abs vs RE YTD
% vs RE YTD

 

Example with WTD Selection:

Table entered as filter                                          

Jovan_B_0-1666599251045.png

On Selected value 

User Selection Dim = SELECTEDVALUE('000_Measures_Filter'[Filter Dimension])

 

Slicing only measures that are selected in matrix table.

Jovan_B_1-1666599251048.png

 

000_Measures_Filter Table with all measures with belonging group (Filter Dimension).

Filter Dimension

Measure

WTD

Actual WTD

WTD

abs vs LY WTD

WTD

% vs LY WTD

WTD

abs vs BP WTD

WTD

% vs BP WTD

WTD

abs vs RE WTD

WTD

% vs RE WTD

WTD

Actual IC MIX WTD

WTD

BP IC MIX WTD

WTD

% Point vs BP WTD

MTD

Actual MTD

MTD

abs vs LY MTD

MTD

% vs LY MTD

MTD

abs vs BP MTD

MTD

% vs BP MTD

MTD

abs vs RE MTD

MTD

% vs RE MTD

MTD

Actual IC MIX WTD

MTD

BP IC MIX WTD

MTD

% Point vs BP WTD

YTD

Actual YTD

YTD

abs vs LY YTD

YTD

% vs LY YTD

YTD

abs vs BP YTD

YTD

% vs BP YTD

YTD

abs vs RE YTD

YTD

% vs RE YTD

YTD

Actual IC MIX WTD

YTD

BP IC MIX WTD

YTD

% Point vs BP WTD

 

Let me know if any more information is needed

Thanks,

2 REPLIES 2
Anonymous
Not applicable

Hello, 

Please find PBI example file on the OneDrive link with dummy values. Voluime_Forum_Share

Below is print screen of what should happen when filter is selected. 

 

Jovan_B_0-1666617290209.png

 

Please advise if I can clarify this additionaly.

Thanks.

 

daXtreme
Solution Sage
Solution Sage

I read this but don't understand; too much noise. Would you please post some data demonstrating the issue and/or good pictures with explanations? Even better, please create a pbix file that highlights the issue and then place a link to it here so that we can inspect and advise. You can place the file on any of the shared drives that people normally use, Google Drive, OneDrive... Thanks.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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