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 September 15. Request your voucher.
Hi everyone,
I hope you can help me with this issue - thanks in advance! 😊
Context: You can see from the attached image below that I have:
Cluster Chart
Matrix
Problem: I need to ensure that the Cluster Chart is sorted in descending order of USG AND that the Matrix dynamically follows this same order for company names based on the selected period and year in the slicer.
For example:
Attempts so far (unsuccessful):
Looking for a solution to make the Matrix column/row dynamically follow the Cluster Chart's USG-based order. 😓
Note: I created the company_order_index to align the Cluster Chart and Matrix, but it's only a temporary fix since the company order remains static, which is not the intended outcome.
What I need:
Solved! Go to Solution.
Hi @MichaelZang
Matrix values are sorted based on the total column so the total must return the value for USG
UPG_UVG_UOM_Values =
VAR _USG =
CALCULATE (
SUM ( fact_financials_unpivoted_percentage[Metric Value] ),
fact_financials_unpivoted_percentage[Metric] = "USG"
)
RETURN
IF (
NOT ( HASONEVALUE ( fact_financials_unpivoted_percentage[Metric] ) ),
_USG,
CALCULATE (
SELECTEDVALUE ( fact_financials_unpivoted_percentage[Metric Value] ),
FILTER ( ALL ( dim_region ), dim_region[region_name] = "Total Company-Wise" )
)
)
Hi @MichaelZang
Matrix values are sorted based on the total column so the total must return the value for USG
UPG_UVG_UOM_Values =
VAR _USG =
CALCULATE (
SUM ( fact_financials_unpivoted_percentage[Metric Value] ),
fact_financials_unpivoted_percentage[Metric] = "USG"
)
RETURN
IF (
NOT ( HASONEVALUE ( fact_financials_unpivoted_percentage[Metric] ) ),
_USG,
CALCULATE (
SELECTEDVALUE ( fact_financials_unpivoted_percentage[Metric Value] ),
FILTER ( ALL ( dim_region ), dim_region[region_name] = "Total Company-Wise" )
)
)
Hi @danextian
Thank you for your quick response. I really appreciate your help on this issue
User | Count |
---|---|
55 | |
53 | |
50 | |
48 | |
32 |
User | Count |
---|---|
157 | |
85 | |
69 | |
48 | |
46 |