Forum Discussion
pattajoh
6 years agoRegular Visitor
Need urgent help
Hello, Good day to everyone out there. I need a help from you. Below shown is a table where I need to have a column ("Tax impacted Direct") after "% Direct" showing a value (% Direct * Total ...
- 6 years ago
pattajoh
Try this modified measure please:Tax impacted Direct = VAR _INDIRECT = CALCULATE( SUM(Report[Indirect]), ALLEXCEPT(Report,'Code List'[Code])) VAR _DIRECT = CALCULATE( SUM(Report[Direct]), ALLEXCEPT(Report,'Code List'[Code])) RETURN IF( NOT(ISFILTERED('Sup List'[Sup])) && ISBLANK(_DIRECT), _INDIRECT, COALESCE( _INDIRECT * 'Report'[% Direct], BLANK()))________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon on the right if you like this reply 🙂
jpattamthanam
6 years agoFrequent Visitor
Hi,
I have an older version of Bi installed on my machine...
what would be an alternative option for COALESCE
Could you share an edit to the measure you helped me with.
Regards,
JP
Fowmy
Super User
6 years ago
After RETURN
replace the following
IF( NOT(ISFILTERED('Sup List'[Sup])) && ISBLANK(_DIRECT),
_INDIRECT,
IF(
_INDIRECT * 'Report'[% Direct]=BLANK(),
_INDIRECT * 'Report'[% Direct]
)
)