Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello, I want to create a graph where I have the market share of 3 brands (values) and 10 countries (Axis).
The problem is that the % of grand total is made only one the filtered 10 countries but I want the total to be made on all countries on my database. Is it possible ?
Solved! Go to Solution.
Yes it's possible.
You'll need to create a measure
YourMeasure =
VAR CurrentTotal = SUM(YourValueColumn)
VAR AllTotal =
CALCULATE(
SUM(YourValueColumn)
,ALLEXCEPT(YourTable , YourBrandColumn , AnyOtherColumnsYouWantToGroupBy )
)
RETURN
DIVIDE
(CurrentTotal
,AllTotal
)
Something like this ^
Yes it's possible.
You'll need to create a measure
YourMeasure =
VAR CurrentTotal = SUM(YourValueColumn)
VAR AllTotal =
CALCULATE(
SUM(YourValueColumn)
,ALLEXCEPT(YourTable , YourBrandColumn , AnyOtherColumnsYouWantToGroupBy )
)
RETURN
DIVIDE
(CurrentTotal
,AllTotal
)
Something like this ^
User | Count |
---|---|
93 | |
84 | |
78 | |
75 | |
66 |
User | Count |
---|---|
115 | |
105 | |
93 | |
65 | |
60 |