Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I have a problem that I can't crack. I want to calculate the gains of a cable company. I have 2 tables. First table, "Calendar" stores the unique dates. The second table "Agreements" stores the information about the agreements:
So each customer generates MonthlySubsctiption + ServiceFee as a revenue for the company in the first month and a MonthlySubscription in each subsequent month. I tried to create a measure that would generate the results similar to the one that I presented on a picture below in "Expected Result" table. Please note that even though I presented "Expected Result" as a table in fact measure should generate a scalar value for a specific date. Another useful information is that there is a one to many relationship between the Calender and Agreements (Date - StartDate).
Solved! Go to Solution.
This pretty much solves the problem:
https://community.powerbi.com/t5/Desktop/DAX-Calculate-sum-of-DateDiffs-between-last-date-of-slicer-...
This pretty much solves the problem:
https://community.powerbi.com/t5/Desktop/DAX-Calculate-sum-of-DateDiffs-between-last-date-of-slicer-...
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
95 | |
94 | |
80 | |
71 | |
64 |
User | Count |
---|---|
115 | |
106 | |
96 | |
81 | |
72 |