Forum Discussion
Coding help, deduct certain points from key measures - doubling points
- Anonymous2 years ago
Hi Courtb86 ,
Ritaf1983 , thanks for your concern about this case. I find something based on the user's requirement and implemented the result. Please check if there is anything that can be improved. Here is my solution:
I think you can try the DAX code below.
Measure = IF(ISBLANK([SCV]+[Memo]), 0, ([SCV]*-1) + ([Memo]*-5))But I'm not sure about the data in your table or what specific results you're trying to present, so if you can provide me with specific data and information, I'll look deeper into it.
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Courtb86
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523