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
ThreeBlindMice
Frequent Visitor

MTD YTD Filter without redefining measures

Hi

Looking for a way to apply a MTD or YTD filter to the entire page without having to rewrite all the measures (and many of these are nested

 

Have two columns in the DateTable with formulas for either MTD or YTD and want to use these to create a chiclet of MTD or YTD.

 

All the solution for this problem so far are diconnected tables with custom measures based on what is selected.

 

Ideas?

 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @ThreeBlindMice ,

I'd like to suggest you create a dynamic attribute filter or add a selector table as the source of the slicer, then you can use its selection and 'switch' function to change calculate results based on the slicer.

Dynamic Attributes In A Power BI Report 

Power BI – Using a Slicer to show different measures 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

4 REPLIES 4
v-shex-msft
Community Support
Community Support

Hi @ThreeBlindMice ,

I'd like to suggest you create a dynamic attribute filter or add a selector table as the source of the slicer, then you can use its selection and 'switch' function to change calculate results based on the slicer.

Dynamic Attributes In A Power BI Report 

Power BI – Using a Slicer to show different measures 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hi

 

Thanks for that suggestion.

 

I've rebuilt my date table to be more dynamic (so that it outputs columns of 'MTD' and 'YTD') and the unpivot within PBI. An attribute table and a couple of links and it seems to work.

 

Now just have to check the results.

 

 

amitchandak
Super User
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.