Forum Discussion
melodypoh
8 years agoFrequent Visitor
Simple DAX calculation wrong
Hi, I just started using Power BI so I am slowly navigating as I go. I am trying to recreate a report that I did in Excel but a simple calculation of (x-y)/x doesn't work in Power BI. A couple o...
- 8 years ago
Hi melodypoh,
My former formula missed a parenthesis, sorry:
BAND= Divide( Sum(Data[Q List])-Sum(Data[Q Band]),Sum(Data[Q List}),blank()).
Try trhis Please
Ninter
melodypoh
8 years agoFrequent Visitor
It didn't... Please see the screenshot.
Interkoubess
8 years agoSolution Sage
Hi melodypoh,
What is the name of your table?
I wrote Data because I thought it was named Data, please replace Data by the real name.
Let us know...
Ninter
- Interkoubess8 years agoSolution Sage
Hi melodypoh,
My former formula missed a parenthesis, sorry:
BAND= Divide( Sum(Data[Q List])-Sum(Data[Q Band]),Sum(Data[Q List}),blank()).
Try trhis Please
Ninter
- Anonymous8 years agoNot applicable
Sloppy typing. You're missing a close parentheses and you used a curly bracket instead of a square bracket.
BAND = DIVIDE( SUM(Data[Q List]) - SUM(Data[Q Band]), SUM(Data[Q List]), BLANK() )
- Interkoubess8 years agoSolution Sage
Yeah I was typing too quickly.
Thank you Anonymous.
melodypoh please try the corrected one and let us know.
Ninter
- Anonymous8 years agoNot applicable
Interkoubessah yeah looks like you caught it at the same time I did. Cool.