The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi Everybody,
I want to add the yellow line mark amount. How to do it in dax. Is there anyone to help me.
This is not working properly. there is both condition which is should be one value.
To get the amount for the maximum line no for each version, you can use the following DAX formula:
Here, we are using the CALCULATE function to filter the table based on two conditions - same version no and maximum line no. The EARLIER function is used to refer to the current row in the filter context, and the MAX function is used to get the maximum line no for the current version. Finally, we sum up the Amount column for the filtered rows.
To get the amount for different version nos for the same line no, you can use the following DAX formula:
Here, we are using the CALCULATE function to filter the table based on two conditions - same line no and different version no. The EARLIER function is used to refer to the current row in the filter context, and the <> operator is used to check for inequality between version nos. Finally, we sum up the Amount column for the filtered rows.