Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi,
I have case where user expects the sales_average to be calculated at country level only.
Region is higher level than country should be calculate this KPI but it should be simply sum of all the country within that region.
e.g. ANZ should Sum of sales average of Australia and New Zealand marked in Green.
But the KPI = Sales/Days is calculating it wrongly marked inRed
Please suggest solution.
Solved! Go to Solution.
@rahulnadk2025 Create the Sales_average measure:
Sales_average = DIVIDE(SUM('Table'[Sales]), SUM('Table'[Days]))
Create the Region_Sales_average measure:
DAX
Region_Sales_average = SUMX(
VALUES('Table'[Country]),
CALCULATE([Sales_average])
)
Proud to be a Super User! |
|
You need to do a SUMX over the countries, something like
Sales average =
SUMX (
VALUES ( 'Table'[Country] ),
CALCULATE ( DIVIDE ( SUM ( 'Table'[Sales] ), SUM ( 'Table'[Days] ) ) )
)
You need to do a SUMX over the countries, something like
Sales average =
SUMX (
VALUES ( 'Table'[Country] ),
CALCULATE ( DIVIDE ( SUM ( 'Table'[Sales] ), SUM ( 'Table'[Days] ) ) )
)
@rahulnadk2025 Create the Sales_average measure:
Sales_average = DIVIDE(SUM('Table'[Sales]), SUM('Table'[Days]))
Create the Region_Sales_average measure:
DAX
Region_Sales_average = SUMX(
VALUES('Table'[Country]),
CALCULATE([Sales_average])
)
Proud to be a Super User! |
|
User | Count |
---|---|
12 | |
12 | |
8 | |
8 | |
6 |
User | Count |
---|---|
27 | |
19 | |
13 | |
11 | |
7 |