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.
I have a 2 tables invoice amount and line amount and i have to calculate Total actual amount, Now condition for total actual amount is invoice amount till previous month of maximum planning date and line amount from current month date.
P.S. Planning date is in invoice amount table and future dates will be in line amount amount.
I need DAX condition to create a new column in line amount table to make all values of line amount 0 till previous month of maximum planning date.
lets assume i have max planning date in invoice amount table is 5th dec 2018, so In a new column in Line amount table values from start lets say 1st Jan 2016 till 31st Nov 2018 will be zero and and from 1 dec till end date it will be equal to line amount.
Urgently needed.
Hi @hozefa,
Could you please mark the proper answers as solutions?
Best Regards,
Dale
Hi @hozefa,
Try the following formula, please. Or please share a sample without sensitive data.
Amount = VAR maxPlanningDate = EOMONTH ( MAX ( 'invoice'[planning date] ), -1 ) RETURN IF ( [future dates] <= maxPlanningDate, 0, [line amount] )
Best Regards,
Dale
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |