Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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