Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi All,
I have the dataset and i want "output" column using dax.
Mater Category | Sub-Category | Total | Output |
A | A1 | 10 | 50 |
A | A1 | 20 | 50 |
A | A1 | 20 | 50 |
B | B1 | 20 | 40 |
B | B1 | 20 | 40 |
C | C1 | 10 | 20 |
C | C1 | 10 | 20 |
Thanks in advance
Solved! Go to Solution.
Hi @jay_patel ,
You can create a column using this code:-
output =
CALCULATE (
SUM ( category_table[Total] ),
ALL ( category_table ),
category_table[Mater Category ] = EARLIER ( category_table[Mater Category ] )
)
Output:-
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Hi @jay_patel ,
You can create a column using this code:-
output =
CALCULATE (
SUM ( category_table[Total] ),
ALL ( category_table ),
category_table[Mater Category ] = EARLIER ( category_table[Mater Category ] )
)
Output:-
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
User | Count |
---|---|
102 | |
90 | |
80 | |
71 | |
69 |
User | Count |
---|---|
113 | |
99 | |
97 | |
72 | |
68 |