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
EmaVasileva
Helper V
Helper V

Week in two months - need help with measure

Hi team,

 

I need help with a measure, which I can use as a hidden filter, for my chart.
Example: My custom week starts on Thursday and ends on Wednesday.  The week 30 is in two months in July as well as in August. What I would like to achieve is that week 30 to filter data in the chart for month August. If the full week is in one month, I want to see the relevant month. Week 31 in in Aug, so the bars are filtered for Aug.

The desired result:

Presentation1.jpg

 

 

 

 

 

 

 

Custom week comes from measure table, so I cannot use power query. Data in the bars comes from different table. The two tables don’t have a relationship between them, because of the setup of the dataset. So, I need a measure.

Thank you in advance.

2 REPLIES 2
v-yadongf-msft
Community Support
Community Support

Hi @EmaVasileva ,

 

Can you share with me some screenshots of your data after hiding sensitive information?

Thanks for your efforts & time in advance.

 

Best regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-yadongf-msft ,
Thank you for willing to help! I attached a sample data in excel and a pbi file. 

Currently, when a week is in two months, I need do see data for the completed month (ex. selected week 8, which is in Feb&Mar, I need to see data for Feb, if the week is in Mar, I need my bars to be filtered for Mar).


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.