The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All,
I seem to have an issue in an 'inherited' PowerBI Report. Being new to the software and having never coded beyond excel functions, I'm kind of clueless as to why the below behaviour occurs. Maybe you can help out!
In my report, I have an oval shape fill conditioned based on whether my data is 'Red, Amber, Green.'
I see that in the dataset, whoever set this up initially rightfully translated Red/Amber/Green text into a Whole number data type using the below:
And similar for the other 2 conditions.
So far so good. But here's where the tricky part starts.
I'll use an example of one record which to me doesn't make sense.
Clearly stated Green:
Cleary translated correctly:
And yet my colours are opposite, with one completely missing:
I assume this behaviour is related to 'Sum of...' being selected under 'Summarisation' in fx formatting of the shape but am clueless as to how to set this formatting to work correctly. Maybe this great community can shed some light on this issue?
Thanks a lot folks!
I'm not explaining myself very well.
The measure will be shown on a visual (table, card, line chart or something like that) and the conditional formatting will reflect the value of the measure.
The type of visual is important for me to know so that I can help with whether the conditional formatting is set up appropriately. For example, a card shows a scalar value (a single summary value), a matrix has rows and columns and displays a value at each intersection so shows many values.
When you are coming from an Excel background, you have to make the jump from cells to thinking about data in terms of rows and columns and (on visuals) aggregations.
If you tell me what you have and what you want to show on a visual, I can help. However I can't give a powerbi introductory course.
"I assume this behaviour is related to 'Sum of...'" - I think you are correct.
Conditional formatting is based on a measure (which involves aggregation). The value of the aggregation is determined by the context of the visual so the question is "Is SUM the appropriate aggregation for your visual in this case?". In more basic terms, what's in the visual? What do you want the conditional formatting to show?
User | Count |
---|---|
77 | |
76 | |
36 | |
31 | |
29 |
User | Count |
---|---|
93 | |
79 | |
57 | |
48 | |
48 |