Forum Discussion
Need Dax help
- 3 years ago
Dear Community Team, thank you for the replay & DAX. will try & update you
Hi amksnpower ,
Please have a try.
Mature Warranty % =
VAR CurrentDate =
TODAY ()
VAR WarrantyPeriod =
15 - MAX ( table[change this to your desired warranty period in months ] )
VAR MatureDate =
EDATE ( CurrentDate, - WarrantyPeriod )
VAR Claims =
CALCULATE (
SUM ( Claims[Amount] ),
FILTER ( Claims, Claims[Date] <= MatureDate )
)
VAR Supplies =
CALCULATE (
SUM ( Supplies[Quantity] ),
FILTER ( Supplies, Supplies[Date] <= MatureDate )
)
RETURN
DIVIDE ( Claims, Supplies )
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Dear Community Team, thank you for the replay & DAX. will try & update you
- amksnpower3 years agoNew Member
Dear Bro,
it is working, I dynamically changed the Edate formula, claims, and supplies. Thank you.
need support as I made claims & supplies linked with the Date table to get the date common. but I cannot use that Date table, please help me with that. The date table created a relationship with claims and supplies.