Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
How can I rewrite the highlighted formula so that it will be blank instead of 100% for the months in the future on the "Average Margin" tile? I want it to be blank like all the rest of the tiles to the right of it.
Solved! Go to Solution.
Margin% = DIVIDE ( SUM ( AvgPricePer[Invoice Charge] ) - SUM ( AvgPricePer[Cost] ), SUM ( AvgPricePer[Invoice Charge] ), 0 )
Hi @Anonymous
You could try it using IF. So somthing along the lines of this
Margin% = IF( (1-(sum(AvgPricePer[Cost]) / sum(AvgPricePer[Invoice Charge]))) = 1 , BLANK(), 1-(sum(AvgPricePer[Cost]) / sum(AvgPricePer[Invoice Charge])) )
Also you might want to have a look into the DIVIDE function
So rather that write x = y / z
you can write x = DIVIDE(y,z) to get better results
Margin% = DIVIDE ( SUM ( AvgPricePer[Invoice Charge] ) - SUM ( AvgPricePer[Cost] ), SUM ( AvgPricePer[Invoice Charge] ), 0 )
User | Count |
---|---|
98 | |
90 | |
82 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
67 |