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
Anonymous
Not applicable

How to add Pagefilter into Measure

In my report a have valid data at the beginning of June 2022 and therefore I added this criteria to "Filter on all pages".
Now I have a previous year measure (PY), which uses sameperiodlastyear().
In my case, this measure  PY provides me, of course, with data which are befor june 2022 (Filter on all pages) !!

How can I add this filter to the calculation of PY, so that currently I wont see any PY measure, but for example in june 2023 I would see a full year of PY.
Or maybe there is another, better way then the one of filtering via "filter on all pages".

ahau_0-1671115720845.png

 


Many thanks for your help.  
 

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

Have you tried to create a custom measure and apply to 'filter on this visual'?

Can you share a sample file for further research?

 

Best Regards,
Community Support Team _ Eason

 

Anonymous
Not applicable

My Problem is not to filter a visual. My Problem is that if I filter the Report-Date by a Date via "Filter on all Pages" (example >= April 2008), but using a Previous Year Measure then I get also values from dates < then April 2008.
Therefore, how can I add this "All pages filter" to my Calculation Measure ? 

My expectation is that this cell should all be empty

ahau_0-1671539025716.png


Here you can find a test driver https://1drv.ms/u/s!AisdRKk9qLVVgt8i-IhvdXip2nx9Wg?e=b7tIoP

 

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.