Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 40 | |
| 37 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 68 | |
| 34 | |
| 33 | |
| 30 |