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

Slicers with custom period to date calculation

Hi all,

 

As per uploaded pbix file, I have a custom financial period, and the PTD calculations against it are working fine.

 

The issue is when I select the other filters I have in the dashboard (Product / Category / SubCategory) the PTD value remains the same. I need the PTD calculation to filter on all filters except for dates.

 

For example, selecting 25th October 2018, the PTD value is correct. Upon sleecting one of the other filters the PTD does not change and I need it to update accordingly without hardcoding the specific filters.

 

I would really appreciate your help in this one.

 

https://1drv.ms/f/s!AiYtBXEZ84pPhiMWMgcoFVokdIqt

 

 

Thanks.

 

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

 

What is PTD?  When you select 25 October 2018, what time period shoul it be considering for the PTD measure?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @Ashish_Mathur

 

The PTD calculation should calculate the dates  for 23- 25 Oct. It is currently working OK as per calculation in the attached pbix but not working well when other slicers are used.

 

Any help would be great

 

Thanks

 

Hi,

 

I cannot understand your question.  Someone else who does will help you.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hello @Ashish_Mathur,

 

I just want the PTD calculation to work with the slicers as currently it is not.

 

Would be great if you can check out the attached powerbi file and provide any help here.

 

 

Greg_Deckler
Super User
Super User

You probably need to replace an ALL with an ALLEXCEPT, etc. That can be tricky through depending on what time intelligence functions you are using. See if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...

 

Created it to provide better control over exactly what is and is not included in a time intelligence calculation.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks @Greg_Deckler,

 

Are there other ways of accomplishing this without using ALLEXCEPT?

 

If not can you give assist with the attached pbix?

 

Appreciate your help

 

 

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.