Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
kukszi
Helper I
Helper I

Applying two different calendars on the same data

Hi there,

I have trouble with applying two different calendars on the same data. The sales data should be consolidated differently when it is presented to internal vs. external stakeholders.

The sales are managed by a third party agent, who is sending the line items weekly, which is then manually invoiced. This approach creates a situation when the sales for the last week of the month are being captured as revenue for the next period, but when reviewing the performance with the external stakeholder, they are interested about the sales that took place in the calendar month.

 

The example data looks like this:

Week    Sales
4100
595
680
785
870

 

Reporting Calendar looks like this:

Reporting Period    Week    
January 20214
February 20215
February 20216
February 20217
February 20218

 

Billing Calendar:

Billing Period    Week    
February 20214
February 20215
February 20216
February 20217
March 20218

 

So in this case when the data is presented to the internal stakeholders, the February sales is 360 units (invoiced between week 4-7), but when it is presented to external stakeholders, the sales for the month is 330 units (shipped between week 5-8).

What is the best approach to manage this kind of situation in Power BI?

 

Thanks,
kukszi

2 ACCEPTED SOLUTIONS
Jihwan_Kim
Super User
Super User

Hi, @kukszi 

I believe you have a date-related column in your tables. If you have it, then the below measures might need to be fixed to match your model. However, the below can give you some ideas about how to approach your problem.

 

Picture3.png

 

Internal Stakeholders =
CALCULATE (
SUM ( Sales[Sales] ),
TREATAS ( VALUES ( 'Calendar'[Reporting Week] ), Sales[Week] )
)
 
External Stakeholders =
CALCULATE (
SUM ( Sales[Sales] ),
TREATAS ( VALUES ( 'Calendar'[Billing Week] ), Sales[Week] )
)
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

Thejeswar
Super User
Super User

Hi @kukszi ,

You can also achieve it by using two different tables for the calendar.

 

Join those tables to the data table like shown below.

Thejeswar_0-1621656983403.png

 

This can help you build the data as you need

 

Thejeswar_1-1621657117287.png

 

 

 

View solution in original post

2 REPLIES 2
Thejeswar
Super User
Super User

Hi @kukszi ,

You can also achieve it by using two different tables for the calendar.

 

Join those tables to the data table like shown below.

Thejeswar_0-1621656983403.png

 

This can help you build the data as you need

 

Thejeswar_1-1621657117287.png

 

 

 

Jihwan_Kim
Super User
Super User

Hi, @kukszi 

I believe you have a date-related column in your tables. If you have it, then the below measures might need to be fixed to match your model. However, the below can give you some ideas about how to approach your problem.

 

Picture3.png

 

Internal Stakeholders =
CALCULATE (
SUM ( Sales[Sales] ),
TREATAS ( VALUES ( 'Calendar'[Reporting Week] ), Sales[Week] )
)
 
External Stakeholders =
CALCULATE (
SUM ( Sales[Sales] ),
TREATAS ( VALUES ( 'Calendar'[Billing Week] ), Sales[Week] )
)
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors