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 Sir,
I have a year column from 1996 to 1998 in my data. When I calculate net sales then it works fine, however when I calculate Average Net Sales on year wise then it shows values which does not have year in table chart.
My Net Sales formula:
Solved! Go to Solution.
@aAmirkHan , Make sure both of these are meausres (changed second measure) and there join with date table
Net Sales =
Var gross = SUMX(Order_Details,Order_Details[Quantity]*Order_Details[UnitPrice])
Var discount = SUMX(Order_Details,Order_Details[Quantity]*Order_Details[UnitPrice]*Order_Details[Discount])
Return
gross - discount
Average Sales:
AverageX Sales = AVERAGEX(values('Calendar'[Year]),[Net Sales])
Amazing Sir, it clears my doubt.
Thank you
@aAmirkHan , Make sure both of these are meausres (changed second measure) and there join with date table
Net Sales =
Var gross = SUMX(Order_Details,Order_Details[Quantity]*Order_Details[UnitPrice])
Var discount = SUMX(Order_Details,Order_Details[Quantity]*Order_Details[UnitPrice]*Order_Details[Discount])
Return
gross - discount
Average Sales:
AverageX Sales = AVERAGEX(values('Calendar'[Year]),[Net Sales])
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 |