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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
dobregon
Impactful Individual
Impactful Individual

Calendar and measures

Hi,

 

I have a table of customers, with the following columns

CustomerName, Amount, Budget Date, Estimation Date

 

(that means a customername could have 500 amount, budget date like 2022-06-05 and estimat date like 2023-01-05)

 

And one of mi clients wants to have a matrix table with some calculations comparing budget amount and estimation amount and months for 2022 with the sum of the amounts. That means to create 2 measures suming the amount depending of budget date and other with estimation date.


To do that, i have createad a calendar table with all days from today to the next 50 years, but i can't do the relationship between calendar and table customers due to it has the 2 columns of dates that i need.

I have tried to create a measure that sum the valeus doing this


 

Buget (Amount) = 
Var Capacity = Customers[Amount]
Var CalendarDate = Max(Calendar_General[Date])
Var CustomerBudget = Max(Project[Budget_Date])
Return
CALCULATE(Capacity, FILTER(Calendar_General,Calendar_General[Date] = CustomerBudget ))

 



but this put the sum of everthing in every month, so, it is clear that the measure is wrong. Can someone help me on this?


.



Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
1 ACCEPTED SOLUTION

@dobregon , Join with both dates, one join will be inactive, that you can activate using use relationship

 

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

3 REPLIES 3
dobregon
Impactful Individual
Impactful Individual

can someone help me on this?

 

 

 

.



Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

@dobregon , Join with both dates, one join will be inactive, that you can activate using use relationship

 

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

I have taken a look that DAX feautre and it wokrs, so much thank you @amitchandak 



Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.