Forum Discussion
Help with Dax Formula - Average Hours Per Week Visual Assistance
Hello,
I have a visual that shows the average hours worked on certain services per week. On the whole, this visual / formula works exactly as I like it to - Except - what I would like is when all sessions are selected, it seems to just divide the total hours worked/by the total number of weeks, which for all-sessions - is not correct.
Anyone have any ideas?
Here is the formula:
Power bi reports are treated case by case, so maybe a sample Pbix would be a better idea so i can work on it and help you understand.
11 Replies
- aj1973Community Champion
Hi ianallen13
When you check box "Select all" it is like you are including values from blank rows in your model. it is better not to use select all and keep the boxes unchecked( it is doing the same thing as you check box all of them.
- ianallen13Helper I
But I'd like it to show 'all weeks' from 'all sessions' as well to display the overall average from the time that we started this, but is there a way to write the formula to show that when they are all checked?
- aj1973Community Champion
Embed your formula into a CALCULATE function and filter out the blank rows.
- ianallen13Helper I
Message sent.
- v-angzheng-msftCommunity Support
Hi, ianallen13
May I ask whether your problem has been solved, if so, can you consider sharing your solution,and then mark your post as Answered since it is working now? It will help the others in the community find the solution easily if they face the same problem with you. Thank you.
- ianallen13Helper I
Hello - yes - another person was able to help build a separate table within the file and that is how they were able to work around it. Let me know if that helps?
- v-angzheng-msftCommunity Support
Thank you for sharing😀