Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi All,
Need help on DAX for the below scenario
1.Need to calculate Cumulative total for Amount based on Lapse Yr and Sponsor
2.BEY-Cumulative total>0 (first postive value) need to show corresponding Lapse Yr for Sponsor,if Cumulative total<0 then 11
Expected Result:
Thanks,
Sanjay
Solved! Go to Solution.
Hi @sanjaymithran ,
If you want to calculate Cumulative total for Amount based on Lapse Yr and Sponsor, try this measure:
Cumulative Total = CALCULATE(SUM('Table'[Amount]),FILTER(ALLSELECTED('Table'),[SPONSOR]=MAX('Table'[SPONSOR])&&[LAPSE YR]<=MAX('Table'[LAPSE YR])))
And if you want to calculate the BEY, you can try this measure:
BEY = var _BEY=MINX(FILTER(ALLSELECTED('Table'),[SPONSOR]=MAX('Table'[SPONSOR])&&[Cumulative Total]>0),[LAPSE YR])
RETURN IF(_BEY=BLANK(),11,_BEY)
Below is the result.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @sanjaymithran ,
If you want to calculate Cumulative total for Amount based on Lapse Yr and Sponsor, try this measure:
Cumulative Total = CALCULATE(SUM('Table'[Amount]),FILTER(ALLSELECTED('Table'),[SPONSOR]=MAX('Table'[SPONSOR])&&[LAPSE YR]<=MAX('Table'[LAPSE YR])))
And if you want to calculate the BEY, you can try this measure:
BEY = var _BEY=MINX(FILTER(ALLSELECTED('Table'),[SPONSOR]=MAX('Table'[SPONSOR])&&[Cumulative Total]>0),[LAPSE YR])
RETURN IF(_BEY=BLANK(),11,_BEY)
Below is the result.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Stephen,
Thanks its working ,will check other scenario and comeback if any help needed.
Thanks,
Sanjay.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
88 | |
86 | |
68 | |
51 | |
32 |
User | Count |
---|---|
126 | |
112 | |
72 | |
64 | |
46 |