The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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?
.
Solved! Go to Solution.
@dobregon , Join with both dates, one join will be inactive, that you can activate using use relationship
can someone help me on this?
.
@dobregon , Join with both dates, one join will be inactive, that you can activate using use relationship
I have taken a look that DAX feautre and it wokrs, so much thank you @amitchandak
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
105 | |
77 | |
74 | |
44 | |
36 |
User | Count |
---|---|
152 | |
110 | |
64 | |
64 | |
57 |