cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
stankda
Frequent Visitor

How to show data agregated monthly by weeks

Hi!

I have a table with target for each month. It is connected with calendar table with calendar id as and integer from first date of that month. For example target for january have calendar id - 20220101. 

 

Now I have a visual where sales data is being displayed weekly. I would like to show targets on that visual as well - for example target for january should be displayed for all weeks of january. 

 

How should I set up my model or write DAX in order to achieve that without duplicating my targets table and disaggragating it? 

 

Best regards

2 REPLIES 2
TomMartens
Super User
Super User

Hey @stankda ,

 

this article covers how to setup your model and also provides some DAX examples on how to (re)-allocate values if there are different granularities: https://www.daxpatterns.com/budget/

If the techniques covered in the article can not be applied to tackle your challenge. Provide a pbix that contains sample data but still reflects your data model (tables, relationships, calculated columns, measures). Upload the pbix file to onedrive or dropbox and share the link. If you are using Excel to create the sample data instead of using the manual input method, share the xlsx as well.

 

Hopefully, this provides some new ideas on how to tackle your challenge.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors