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.
TABLE NAME | ||
srl no | srl ref. | desc |
1 | 1 | a |
2 | 1 | b |
3 | 1 | c |
4 | 4 | a |
5 | 4 | b |
6 | 4 | c |
Filter value from srlno search in srl ref.(if srl = srl ref. and desc = "b" then srl no in new col1),( if srl = srl ref. and desc = "c" then srl no in new col2)
TABLE NAME | ||||
srl no | srl ref. | desc | new col1 | new col2 |
1 | 1 | a | 2 | 3 |
4 | 4 | a | 5 | 6 |
Solved! Go to Solution.
Hi @sohailstsindia ,
Please try this:
b =
CALCULATE (
MAX ( 'Table'[srl no] ),
FILTER ( ALLEXCEPT ( 'Table', 'Table'[srl ref.] ), 'Table'[desc] = "b" )
)
c =
CALCULATE (
MAX ( 'Table'[srl no] ),
FILTER ( ALLEXCEPT ( 'Table', 'Table'[srl ref.] ), 'Table'[desc] = "c" )
)
Hi @sohailstsindia ,
Please try this:
b =
CALCULATE (
MAX ( 'Table'[srl no] ),
FILTER ( ALLEXCEPT ( 'Table', 'Table'[srl ref.] ), 'Table'[desc] = "b" )
)
c =
CALCULATE (
MAX ( 'Table'[srl no] ),
FILTER ( ALLEXCEPT ( 'Table', 'Table'[srl ref.] ), 'Table'[desc] = "c" )
)
@sohailstsindia , Create relationship srl no and use RELATED function with IF .
https://www.sqlbi.com/daxpuzzle/related-in-a-query/
Regards,
Manikumar
Proud to be a Super User!
thanks @Manikumar can you please write DAX.
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 |
---|---|
117 | |
104 | |
77 | |
73 | |
52 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |