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,
Hi,
I have a time table with days_in_month field to count everyday in a month into a column and the value for this field is the same for each row belongs to a month.
Now i want to create a new measure by divide Total Sales / days_in_month but just only one time instead of dividing 31 times for Mar.
Assuming Total Sales for Mar = 1M$, now i want to create this measure(named avgSales) = Total Sales/31
Could anyone help me? thanks in advanced
Best regards,
J.
Solved! Go to Solution.
You only need to make sure the expression for days is a result obtained by the corresponding aggregation function.
Like the measure formula provided by ankitpatira or something like below.
avgSales = SUM( Table1[Sales] ) / MAX ( Table1[days in month] )
Best Regards,
Herbert
You only need to make sure the expression for days is a result obtained by the corresponding aggregation function.
Like the measure formula provided by ankitpatira or something like below.
avgSales = SUM( Table1[Sales] ) / MAX ( Table1[days in month] )
Best Regards,
Herbert
@pvtrinh89 in that case create measure as below. this will only work when you have dates only for one month.
= sum([SALESCOLUMN]) / DISTINCT([days in month])
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |