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.
Here is a matrix that I created with Customer Group name in the rows area , which is actually a 2nd Level of a Hierarchy which is Customer Subchannel -> Customer Groupname -> Customer Name. The slicers filter fine for the values FCA% and Bias% when I put one field of the hierarchy at a time in the Rows area of the matrix visual but when I add the Hierarchy I get unwanted values of
FCA % and Bias %.
Actuals 2 = Calculate(SUM(Sheet1[ACTUALS]))
Forecast 2 = CALCULATE(SUM(Sheet1[FC]))
Error 2 = Calculate([Actuals 2]-[Forecast 2])
Bias% 2 = calculate(IFERROR([Error 2]/[Actuals 2],1))
FCA% 2 = Calculate(1-ABS([Bias% 2]))
The Measures used for the Slicers are below:
Bias Slicer Measure = SWITCH(TRUE(),
[Bias% 2] >= .10 , 1,
[Bias% 2] <= -.10 , 2,
0
)
FCA Slicer Measure = SWITCH(TRUE(),
[FCA% 2] >= 0.84 , 1,
[FCA% 2] < 0.84 ,0)
Bias Filter = Switch(TRUE(),
SELECTEDVALUE('Bias Status'[Bias-Status])="+ve Bias" && [Bias Slicer Measure] = 1, 1,
SELECTEDVALUE('Bias Status'[Bias-Status])="-ve Bias" && [Bias Slicer Measure] = 2, 1,
SELECTEDVALUE('Bias Status'[Bias-Status])="UnBiased" && [Bias Slicer Measure] = 0, 1,
Selectedvalue('Bias Status'[Bias-Status])=BLANK(),1)
FCA Filter = Switch(TRUE(),
SELECTEDVALUE('FCA Status'[FCA-Status])="Good Accuracy" && [FCA Slicer Measure] = 1, 1,
SELECTEDVALUE('FCA Status'[FCA-Status])="Bad Accuracy" && [FCA Slicer Measure] = 0, 1,
Selectedvalue('FCA Status'[FCA-Status])=BLANK(),1)
and the Matrix Visual Filter Settings in the Filter Pane are in the picture below
Please Guide in this Matter
you say that the result is "wrong". What do you expect to be the "right" result?