Forum Discussion
IF Statement plus Multiplication using static number
- Anonymous3 years ago
I found the answer here -> https://www.enjoysharepoint.com/power-bi-measure-multiply/ (Power BI Measure multiply by 100).
_GA Income Calcs = IF(SELECTEDVALUE('Single Donations'[GiftAid]) = "Yes", CALCULATE(SELECTEDVALUE('Single Donations'[amount]) * 0.25, FILTER('Single Donations', 'Single Donations'[GiftAid] = "Yes")), 0)Thank you so much for all your help with this, pratyashasamal .
No need what is data type of GiftAid column ?
Try this once,
This will work only from the Y2 column (GiftAid) column datatype is text and it also has a value of Yes in it . Exact function will match the Y2 column with Yes text and return a True / false column .
Measure = IF(Exact('Table'[Y2],"Yes"),CALCULATE(SUM('Table'[AL2])*0.25),0)
- Anonymous3 years agoNot applicable
Sorry, also didn't work. After the "Exact", it doesn't allow me to chose a table.
GiftAid column is Text
Amount column is Decimal number.
- pratyashasamal3 years ago
Memorable Member
Measure = IF('Table'[Y2] == "Yes",CALCULATE(SUM('Table'[AL2])*0.25),0)- Anonymous3 years agoNot applicable
Again, it doesn't allow me to select a table, only the other measures I have.
Would any screen shot help? Not sure of what to be honest hehe I think the issue is the aggregation after the IF, isn't it?