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, I am trying to figure it out the percentage of daily sales. I calculated the total of the week but can't find the correct measure to extract the daily percentage of sales from the total of the week.
I am just trying to display the percentage of each day from the total of the week.The formulas I have are the followings:
Daily sales:
Solved! Go to Solution.
Hi, I found a solution.
I have used the field, show values as a percentage of grand total!
Thanks for your time!
@alexcatala , Not very clear. In you date table you can define week and week start date
Add column week rank
Week Rank = RANKX(all('Date'),'Date'[Week Start date],,ASC,Dense)
Have meausre like
This Week = CALCULATE(sum('order'[amount]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])))
Last Week = CALCULATE(sum('order'[amount]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])-1))
daily sales is
sum('order'[amount])
or
This Day = CALCULATE(sum('order'[amount]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])))
percent =divide([This Day],[This Week])
Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
@amitchandak it defines from 1-7 meaning Monday to Sunday.
Should I then use this measure?
As I have Daily sales and Weekly sales already established and the date(day of the week).
What I am trying to obtain is the percentage of weekly sales by day. For example: Monday 10%, Tuesday 10%, Wednesday 10%, Thursday 10%,Friday 20%,Saturday 30%,Sunday 10%.
I have the formulas for the daily sales and the weekly sales, date(day of the week, from Monday to Sunday)
I have been trying this:
Hi @alexcatala ,
Please show us the sample data and expected output result.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, I found a solution.
I have used the field, show values as a percentage of grand total!
Thanks for your time!
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 |
---|---|
110 | |
94 | |
80 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |