Forum Discussion
dkbbr
2 years agoRegular Visitor
Matrix visual
Hi, My english is so bad explain what i'am struggling for but hope you can understand. In Matrix visual i wanna see our store's customers that sales over 10m and which category item is these custo...
- 2 years ago
Hi,
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
Sales with condition = VAR _conditioncustomerlist = FILTER ( VALUES ( customer[customer] ), CALCULATE ( SUM ( sales[sales] ), ALL ( category[category] ), ALL ( 'year'[year] ) ) >= 10 ) RETURN CALCULATE ( SUM ( sales[sales] ), customer[customer] IN _conditioncustomerlist )
Jihwan_Kim
2 years agoSuper User
Hi,
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
Sales with condition =
VAR _conditioncustomerlist =
FILTER (
VALUES ( customer[customer] ),
CALCULATE (
SUM ( sales[sales] ),
ALL ( category[category] ),
ALL ( 'year'[year] )
) >= 10
)
RETURN
CALCULATE ( SUM ( sales[sales] ), customer[customer] IN _conditioncustomerlist )