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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Creating relationships

I am trying to show start of month of my revenue and compare it to previous revenue in my KPI. Except My I am only returning the same values for revenue current start of month and revenue previous month. My question is I created a rolling calendar and I created a measure table to house my measures. Do I need to make a relationship in my model view with the rolling calendar table and my measures table and is that why my kpi isn't working. If so how would I link them? Do I need to create a date measure, and if so how do you think I should create the dax code?

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

As far as I know, you need to create a continuous calendar table and then create a relationship between it and your data table for using time intelligence function.

Then you can try PREVIOUSMONTH() function to create a measure to calculate the previous month data.

You can also refer to LeandroDeodato's link to learn more about time intelligence function in DAX.

 

Best Regards,
Rico Zhou

 

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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