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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Brjt1
Frequent Visitor

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 @Brjt1 ,

 

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors