The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I cannot seem to find a way to multiple a column with a constant. For example I have total sales. Now I need to set the target is 15%.
The measure would loke like
Target Sales = XXX(financials[Sales]) * 15%) + (financial[Sales])
I don't know which function to use in my case.
Thank you
Solved! Go to Solution.
Hi @s15,
I just firgured out the way. Instead of 0.15, it must be dividing 100/15 because I cannot seem to find a MULTIPLY function in my case. Math is awesome init'?
Target Sales = SUM(financials[ Sales]) + DIVIDE(SUM(financials[ Sales]),100/15)
Yes, there is no MULTIPLY function in DAX. The arithmetic operator * (asterisk) is usually used for multiplication. So you should also be able to simply use the formula below to calculate the Target Sales in this scenario.
Target Sales = SUM(financials[ Sales]) * (1 + 0.15)
Regards