Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
This is an example of my information:
I need to create two matrices, one for costs and another for margin. I need both to be organized by "2018 costs":
Additionally I want to color the row of product B or whichever I choose.
I appreciate any help.
Solved! Go to Solution.
In this scenario,does this "I need both to be organized by "2018 costs"" mean to sort two matrixes by "2018 costs"?
If it is in this case, please refer to following steps.
For the matrix for costs, you need select “Sort By cost” as below.
For another for margin, make the “margin” column selected and select “cost” in Modeling->Sort by Column simultaneously.
To color the row for product B in both matrix, in Format pane->the conditional formatting, open Advanced controls dialog. This blog is for your reference.
Create a measure in your model that return 1 if a product is “B”, then in Color by rules mode chose to format the product name green if the measure returns 1
Measure = IF(MAX([product])="B",1,0)
Best Regards
Maggie
This blog post should provide a work around to sorting by a matrix column:
https://affinityworks.co.uk/power-bi-matrix-column-sort-sorted/
Hi,
I have the exact same requirement, have you ever come up with a solution?
Please let me know if you do, thank you.
Regards,
Felix
In this scenario,does this "I need both to be organized by "2018 costs"" mean to sort two matrixes by "2018 costs"?
If it is in this case, please refer to following steps.
For the matrix for costs, you need select “Sort By cost” as below.
For another for margin, make the “margin” column selected and select “cost” in Modeling->Sort by Column simultaneously.
To color the row for product B in both matrix, in Format pane->the conditional formatting, open Advanced controls dialog. This blog is for your reference.
Create a measure in your model that return 1 if a product is “B”, then in Color by rules mode chose to format the product name green if the measure returns 1
Measure = IF(MAX([product])="B",1,0)
Best Regards
Maggie
Hi Maggie, thank you very much for your time.
Unfortunately it does not work, in your case works because your data is organized.
It is organizing by total and not by the year 2017.
User | Count |
---|---|
75 | |
75 | |
45 | |
31 | |
27 |
User | Count |
---|---|
99 | |
89 | |
52 | |
48 | |
46 |