Forum Discussion
Chandrashekar
2 years agoResolver III
Dax Help
Hello Team,
How to write DAX to get below result as Column D & E.
Regards,
Chandrashekar B
For the totals, create 2 more measures like:
result = IF( HASONEVALUE('Table'[Si No]), [closed], SUMX( VALUES('Table'[Si No]), [closed]) ) )
4 Replies
- ERDCommunity Champion
Chandrashekar , you can use this measure:
closed = SWITCH ( TRUE (), NOT ISBLANK ( SELECTEDVALUE ( 'Table'[Date_Closed] ) ), 1, NOT ISBLANK ( SELECTEDVALUE ( 'Table'[Date_opened] ) ), BLANK (), 0 )Use similar approach for the opened case.
- ChandrashekarResolver III
Hello,
Thanks for the reply but am getting total incorrect.
Regards,
Chandrashekar B
- ERDCommunity Champion
For the totals, create 2 more measures like:
result = IF( HASONEVALUE('Table'[Si No]), [closed], SUMX( VALUES('Table'[Si No]), [closed]) ) )