Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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])
User | Count |
---|---|
125 | |
106 | |
99 | |
63 | |
62 |
User | Count |
---|---|
135 | |
116 | |
101 | |
71 | |
61 |