Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello,
I am developing a report on a SWOT analysis. I have a slicer at the top of each page with Horizontal Selections. I would like to sort them in the order of 'SWOT', and colour each button accordingly. Could someone please assist on how this could be acheived.
I also have a table that has the SWOT results, I would like to also have each cell coloured according to the SWOT. I would really appreciate assistance on this also.
Thanks in advance 🙂
Solved! Go to Solution.
Hi @AMBP1973
You have to create seperate calculated column. please followthe steps:
Step1: create calculted column
Step3: for color each cell of a swot , you have to write measure for that.
create measure as below
Then select field value and measure
Step5: final result
I hope I answered your question!
Hi,
Please check the below picture and the attached pbix file.
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
color condition measure: =
SWITCH ( TRUE(),
SELECTEDVALUE('SWOT Dimension'[SWOT Type] ) ="Strength", "Green",
SELECTEDVALUE('SWOT Dimension'[SWOT Type] ) ="Weakness", "Orange",
SELECTEDVALUE('SWOT Dimension'[SWOT Type] ) ="Opportunity", "Light Blue",
SELECTEDVALUE('SWOT Dimension'[SWOT Type] ) ="Threat", "Red"
)
Hi @AMBP1973 ,
Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information and description to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Hi,
Please check the below picture and the attached pbix file.
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
color condition measure: =
SWITCH ( TRUE(),
SELECTEDVALUE('SWOT Dimension'[SWOT Type] ) ="Strength", "Green",
SELECTEDVALUE('SWOT Dimension'[SWOT Type] ) ="Weakness", "Orange",
SELECTEDVALUE('SWOT Dimension'[SWOT Type] ) ="Opportunity", "Light Blue",
SELECTEDVALUE('SWOT Dimension'[SWOT Type] ) ="Threat", "Red"
)
Hi @AMBP1973
You have to create seperate calculated column. please followthe steps:
Step1: create calculted column
Step3: for color each cell of a swot , you have to write measure for that.
create measure as below
Then select field value and measure
Step5: final result
I hope I answered your question!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 56 | |
| 40 | |
| 36 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 73 | |
| 73 | |
| 38 | |
| 35 | |
| 26 |