Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
JamieH
Helper I
Helper I

Measure to calculate column % per row in a matrix

I have a matrix that has the following attributes:

Rows

   BookingMonth

   AccStatus

Columns

   MonthsSinceBooking

Values

   Balance

 

So essentially, for each booking month, I can see the different AccStatus for each month since booking.  This all works fine when just showing the balance.  

What I would also like to see though, is the percent for each AccStatus in the BookingMonth by each MonthSinceBooking.

 

As an example, this is a made up view of what the matrix looks like now:

 

BookingMonth123
July 2022100100100
  Status A908070
  Status B101018
  Status C01012
August 2022250250 
  Status B150175 
  Status D10075 

 

This is what I would like it to show:

 

BookingMonth123
July 2022100%100%100%
  Status A90%80%70%
  Status B10%10%18%
  Status C0%10%12%
August 2022100%100% 
  Status B60%70% 
  Status D40%30% 

 

Can someone please advise on how to create a measure that would show this please?

 

Thanks

5 REPLIES 5
v-mengzhu-msft
Community Support
Community Support

Hi @JamieH ,

 

You can directly through this option to change the data value to percentage mode.

vmengzhumsft_0-1668671383450.png

 

Best regards,

Community Support Team Selina zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

Hi there, 

 

Yes, this doesnt work though.  Because I have 2 variables in my Rows element (BookingMonth and AccStatus), none of the percentage options breakdown each bookingMonth into 100% intervals.   It does it for the whole matrix 

JamieH
Helper I
Helper I

And no, BookingMonth comes on the one table with all the other data that makes up this matrix.  So no Date Table.

JamieH
Helper I
Helper I

Thanks Amit. 

 

No, no measure used for M1/M2 etc.  The data comes in with a row for each Month.

amitchandak
Super User
Super User

@JamieH , Assume you have a measure M1 used in matrix

 

then you can try  a measure like

divide([M1], calculate([M1], removefilters(Table[Status])) )

 

if you are using date table for the month year

 

divide([M1], calculate([M1], datemtd(endofmonth(Date[Date])))  )

 

Percent of Total and Percent of SubTotal https://www.youtube.com/watch?v=6jTildcV2ho

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors