Forum Discussion
Anonymous
2 years agoNot applicable
Average Per Store on Weekly Data
Hello, My datasource is enormous where i use CSV file as main file. I have nearly 300+ store list where i have the weekly and daily average percentage value. I need a help on caculating the averag...
Anonymous
2 years agoNot applicable
Hi Anonymous
Try the folloing Dax
Weekly Average % =
VAR TotalStores = COUNTROWS(UNIQUE('04_StoreConsoDaily'[StoreNo]))
VAR TotalPercentageSum = SUMX(
'04_StoreConsoDaily',
VAR StoreDays = COUNTROWS('04_StoreConsoDaily')
VAR StorePercentage = SUM('04_StoreConsoDaily'[Adoption %])
RETURN
DIVIDE(StorePercentage, StoreDays, BLANK())
)
RETURN
DIVIDE(TotalPercentageSum, TotalStores, 0)
If the above Dax doesn't solve your problem, please provide detailed sample pbix file and the results you expect.So that I can help you better. Please remove any sensitive data in advance.
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
2 years agoNot applicable
This DAX doesnt work as it says Unique is not a function.