Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi Experts
How would i find the percentage of the total value for one category only ie. over 6 weeks total divided by the grand total
see image
Result should be 1- (35 /583) this is a matrix table.
Solved! Go to Solution.
In that case, try:
Under 6 weeks / Total =
VAR _all =
CALCULATE ( [Measure], ALL ( 'Table' ) )
RETURN
IF (
SELECTEDVALUE ( Table[Period] ) = "Under 6 weeks",
IF (
ISINSCOPE ( Table[BookedUnbooked] ),
BLANK (),
1 - DIVIDE ( [Measure], _all )
)
)
Proud to be a Super User!
Paul on Linkedin.
It depends on the structureo the model/tables and the fields used in the matrix ( you need to adapt the code to include the actual Tables/columns and measure) Something along the lines of:
Over 6 weeks / Total =
VAR _all =
CALCULATE ( [Measure], ALL ( 'Table' ) )
RETURN
IF (
SELECTEDVALUE ( Table[Period] ) = "Over 6 weeks",
1- DIVIDE ( [Measure], _all )
)
Proud to be a Super User!
Paul on Linkedin.
Hi Paul - i like the idea but it need to be the total of the under 6 weeks - not the booked and unbooked items
In that case, try:
Under 6 weeks / Total =
VAR _all =
CALCULATE ( [Measure], ALL ( 'Table' ) )
RETURN
IF (
SELECTEDVALUE ( Table[Period] ) = "Under 6 weeks",
IF (
ISINSCOPE ( Table[BookedUnbooked] ),
BLANK (),
1 - DIVIDE ( [Measure], _all )
)
)
Proud to be a Super User!
Paul on Linkedin.