This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I am trying to create a measure that will display the value of another measure divided by 53 based on the value of the date slicer.
I want it to divide [EscCountAverage] by 53 if the date slicer is showing data for all weeks. But what I have now wont work because it cant convert the text string to a number. Maybe I am going about this the wrong way? Any help?
Solved! Go to Solution.
Hi @kylerwimbush,
This should do it:
DateSlicerAll = IF(IF(SELECTEDVALUE('Date'[Date]),SUM('Date'[Week Number]),SUM('Date'[Week Number]))=10011, [Sum]/53, [Sum])
Case when all dates are selected, you get 15 divided 53.
For any other selection, you get 15.
Works for you? Mark this post as a solution if it does!
Hi,
Assuming EscCountAverage is a measure you have written, try this measure
=if(selectedvalue('Calendar Table'[Week])="All",divide([EscCountAverage],53),[EscCountAverage])
Hope this helps.
Hi @kylerwimbush,
This should do it:
DateSlicerAll = IF(IF(SELECTEDVALUE('Date'[Date]),SUM('Date'[Week Number]),SUM('Date'[Week Number]))=10011, [Sum]/53, [Sum])
Case when all dates are selected, you get 15 divided 53.
For any other selection, you get 15.
Works for you? Mark this post as a solution if it does!
Had to switch up the values but once I did that it worked! Thanks, you are a big help.
Can you share a sample of your PBIX please?
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 27 | |
| 26 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 66 | |
| 36 | |
| 32 | |
| 26 | |
| 23 |