Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
hi all , i wanna calculate the %Contribution in each year based on Business Type. in each year total %100
but what i have is Y_2021 which is calculated from Measure below , and i use the Percentage of Grand Total in BI , but shown 0% , it is wrong , which formula that i can use to acheive this ?
but when i use visualize "100% Stack Column Chart " in BI , it generates the result i wanted . But it is Column Chart , I want it to be on Line Chart.
Solved! Go to Solution.
Hi @Chanleakna123 ,
You may create measure like DAX below.
%Contribution =
DIVIDE (
CALCULATE (
[Y_2021],
FILTER (
ALLSELECTED ( Table1 ),
Table1[Year] = MAX ( Table1[Year] )
&& Table1[ Business Type] = MAX ( Table1[ Business Type] )
)
),
CALCULATE (
[Y_2021],
FILTER ( ALLSELECTED ( Table1 ), Table1[Year] = MAX ( Table1[Year] ) )
)
)
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Chanleakna123 , try like the approach given in
hi , actually i have acheived this , but the thing is when i continue doing another formula for %contribution , it doesn't work out
Hi @Chanleakna123 ,
You may create measure like DAX below.
%Contribution =
DIVIDE (
CALCULATE (
[Y_2021],
FILTER (
ALLSELECTED ( Table1 ),
Table1[Year] = MAX ( Table1[Year] )
&& Table1[ Business Type] = MAX ( Table1[ Business Type] )
)
),
CALCULATE (
[Y_2021],
FILTER ( ALLSELECTED ( Table1 ), Table1[Year] = MAX ( Table1[Year] ) )
)
)
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |