Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
Kindly help me Here! I want below condition to enable in DAX
I want Divide function where Numerator needs to be a visible value of each Rows and Denominator needs to be sum of all Rows with aplly of any filter
Example - I have Data like below, and % field need to be below cell Value (D2/D9) - i.e., Row level value divided by Total Value.
Answer will be 21% for E2
But, the problem is, if i apply filter it will not take filtered Total Value for Denominator, Denominator Total Value will be Dynamic (it will change if apply filter )
Example:
Ill filter the above Table to Year 2021 only,
Result needed is like below,
Answer will be 35% for the same E2
Denominator - (Total Value) will change dynamically with respect to filter apply and we need to consider the filter context Total value as a Denominator)
Please help here.
Thanks,
Mohanraj
@amitchandak @Fowmy @Jihwan_Kim @Greg_Deckler
Solved! Go to Solution.
@Anonymous , Try if, a measure like this can help
divide(sum(Table[Value]), calculate(sum(Table[Value]), allselected(Table)))
Create a measure like this:
MyMeasure =
DIVIDE (
SUM ( Table[Value] ),
CALCULATE (
SUM ( Table[Value] ),
ALLEXCEPT ( Table, Table[Year], Table[Month] )
)
)
Replace Table with your table name.
@Anonymous , Try if, a measure like this can help
divide(sum(Table[Value]), calculate(sum(Table[Value]), allselected(Table)))
Thanks a lot, This works
User | Count |
---|---|
117 | |
73 | |
58 | |
49 | |
48 |
User | Count |
---|---|
171 | |
122 | |
60 | |
59 | |
56 |