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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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