Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi All,
I'm facing hard to get customize Totals value in Matrix.
I have columns
'Status'(on Rows) values as Completed, Unable, Incomplete
Monthyear(on columns) as Jan2019,Feb2019,etc..
and taking record count as Values
in a Matrix . (I'm getting 'percent of column total' from 'Show values' for each column)
my requirement is to get % of record count diviated from target for 'Completed' value only (yellow highlighted in below screen).
per Ex:
Target goal = 85%
Deviation from Target goal = observed 'Completed' record count % - Target goal %
Any help or advice would be appriciated.
Thank you
Solved! Go to Solution.
Hi Munwar,
If your data sample is similar to below, you could try below measures
statusdatetarget
Completed | 1/1/2019 | 0.85 |
Unable | 1/1/2019 | 0.85 |
Incompleted | 1/1/2019 | 0.85 |
Completed | 1/1/2019 | 0.85 |
Completed | 1/1/2019 | 0.85 |
Completed | 1/1/2019 | 0.85 |
Completed | 1/1/2019 | 0.85 |
Unable | 1/1/2019 | 0.85 |
Unable | 1/1/2019 | 0.85 |
Incompleted | 1/1/2019 | 0.85 |
Completed | 2/1/2019 | 0.85 |
Completed | 2/1/2019 | 0.85 |
Completed | 2/1/2019 | 0.85 |
Completed | 2/1/2019 | 0.85 |
Completed | 2/1/2019 | 0.85 |
Completed | 2/1/2019 | 0.85 |
Completed | 2/1/2019 | 0.85 |
Unable | 2/1/2019 | 0.85 |
Incompleted | 2/1/2019 | 0.85 |
Incompleted | 2/1/2019 | 0.85 |
Completed | 3/1/2019 | 0.85 |
Completed | 3/1/2019 | 0.85 |
Completed | 3/1/2019 | 0.85 |
Completed | 3/1/2019 | 0.85 |
Completed | 3/1/2019 | 0.85 |
Completed | 3/1/2019 | 0.85 |
Completed | 3/1/2019 | 0.85 |
Completed | 3/1/2019 | 0.85 |
Completed | 3/1/2019 | 0.85 |
Incompleted | 3/1/2019 | 0.85
|
You could create two measures like below
Measure 3 = CALCULATE ( COUNT ( test1[status] ) ) / CALCULATE ( COUNT ( test1[status] ), FILTER ( ALL ( test1 ), test1[date] = MIN ( test1[date] ) ) )
Measure 4 = IF ( HASONEVALUE ( test1[status] ), [Measure 3], CALCULATE ( [Measure 3], test1[status] = "Completed" ) - MIN ( test1[target] ) )
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Munwar,
If your data sample is similar to below, you could try below measures
statusdatetarget
Completed | 1/1/2019 | 0.85 |
Unable | 1/1/2019 | 0.85 |
Incompleted | 1/1/2019 | 0.85 |
Completed | 1/1/2019 | 0.85 |
Completed | 1/1/2019 | 0.85 |
Completed | 1/1/2019 | 0.85 |
Completed | 1/1/2019 | 0.85 |
Unable | 1/1/2019 | 0.85 |
Unable | 1/1/2019 | 0.85 |
Incompleted | 1/1/2019 | 0.85 |
Completed | 2/1/2019 | 0.85 |
Completed | 2/1/2019 | 0.85 |
Completed | 2/1/2019 | 0.85 |
Completed | 2/1/2019 | 0.85 |
Completed | 2/1/2019 | 0.85 |
Completed | 2/1/2019 | 0.85 |
Completed | 2/1/2019 | 0.85 |
Unable | 2/1/2019 | 0.85 |
Incompleted | 2/1/2019 | 0.85 |
Incompleted | 2/1/2019 | 0.85 |
Completed | 3/1/2019 | 0.85 |
Completed | 3/1/2019 | 0.85 |
Completed | 3/1/2019 | 0.85 |
Completed | 3/1/2019 | 0.85 |
Completed | 3/1/2019 | 0.85 |
Completed | 3/1/2019 | 0.85 |
Completed | 3/1/2019 | 0.85 |
Completed | 3/1/2019 | 0.85 |
Completed | 3/1/2019 | 0.85 |
Incompleted | 3/1/2019 | 0.85
|
You could create two measures like below
Measure 3 = CALCULATE ( COUNT ( test1[status] ) ) / CALCULATE ( COUNT ( test1[status] ), FILTER ( ALL ( test1 ), test1[date] = MIN ( test1[date] ) ) )
Measure 4 = IF ( HASONEVALUE ( test1[status] ), [Measure 3], CALCULATE ( [Measure 3], test1[status] = "Completed" ) - MIN ( test1[target] ) )
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for your time. My bad, i was unable to fix this with the inputs received... i feel the requirement was not get framed well earlier hence i'm
sharing a sample pbix (dropbox link) contains data and requirement . This report has two matrix for plans 'abc' and 'xyz' with complete and incomplet counts
summary in 'column total percentages'. Each plan has different goal number percentages.
Finally Total would be as Deviation From Goal = Observed complete % (1 st row) - respective plan goal %
Yellow highlighted in below.
Please download the pbix file from here:
https://www.dropbox.com/s/8br57btqwxopp6j/Custom%20Total%20sample%20file.pbix?dl=0
Thankyou!
So it looks like your issue is with the matrix total line not being as easily customizable as you would wish.
Quick question, what are you using to populate each field? Is that a measure that returns 50%/20%/30% or a data field? What expression are you using for that?
Long story short, you want to create a measure using ISINSCOPE to define different behavior based on where in the matrix you are calculating.
So for your example, if the values you currently have are calculated by a measure called [Observed %], you would write a measure like this:
[Observation % for Matrix] = IF( ISINSCOPE(Table[Status]), [Observed %], CALCULATE( [Observed %], Table[Status] = "Completed") - 0.85 )
You'll have to replace terms with the actual names of your data columns/measures, but this is the basic form of a measure that will give a different result for the subtotal row/column than each individual row.
User | Count |
---|---|
141 | |
113 | |
104 | |
78 | |
64 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |