Conditional formatting in Row matrix based on certain values

masterelaichi

New Member
Joined
Sep 29, 2014
Messages
49
Hi,

I have a matrix visual where I am trying to create a measure to display a specific value of column

The scenario:
1. I have a table with three columns CaseID, Date and Review Status

2. The cases are reviewed each day, which means the same CaseID can have multiple dates with a review status

I am trying to create a row matrix with the CaseID and Date in the Row field and review status in the values field. I want to show the status of the Review Status to be "Complete" only when all the review status of each date is "Complete". Instead what I get is the first value alphabetically

I couldn't attach the pbix file so I have copied the M code and pasted it here. As you can see C1 and C2 are incorrect as it is showing "Complete" even though their sub-rows have different review statuses. C3 is correct as all the sub-rows are "Complete"

Capture.JPG


Power Query:
let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("jdHBCoMwDAbgVyk9C7Zp1Xn2tMuQXUV2MYiwtUNle32FbRCEpbkF/i85/Ok63dyszjTkxuVgwOzzJa7qiq8J3zjoPvsRlyaekE+smvh43nFFogqRKkWqEqkTUeeg2jmOMy4LEXVSWMMSODTUYhimMJLUs2mRvF6y+xX/HTi08IfUyTrdtwovYFbGQMacjHmO9Rs=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [CaseID = _t, Date = _t, ReviewStatus = _t]),
    #"Replaced Value" = Table.ReplaceValue(Source,"Review Complete","Complete",Replacer.ReplaceText,{"ReviewStatus"})
in
    #"Replaced Value"

Thanks in advance!
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
What if you put ReviewStatus as columns, moved dates from rows to values as a count? It wouldn't show "Complete" but you would know it is if zeros were in all ReviewStatus except Complete.
 
Upvote 0

Forum statistics

Threads
1,215,326
Messages
6,124,268
Members
449,149
Latest member
mwdbActuary

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top