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
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.


Go to My LinkedIn Page


View solution in original post

Thejeswar
Resident Rockstar
Resident Rockstar

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
Resident Rockstar
Resident Rockstar

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.


Go to My LinkedIn Page


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.