cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Bath299 Frequent Visitor
Frequent Visitor

Issue with Power of DAX formula.

I am working on a CAGR calculation for our Sales Reporting, I can get the calculation to work which is

 

Power of EV/SV = CALCULATE(power([EV/SV],0.25))-1
 
But when i add it to my Matrix table
 
The table is giving me a wrong data type error. 
It is a matrix table, with Global Parent, Rank, and Sales for last 4 years.
 
Tim
 
 
6 REPLIES 6
Super User IV
Super User IV

Re: Issue with Power of DAX formula.

@Bath299 ,

Click on Edit Queries. In Power Query, check the type of each of your columns. Sometimes they are not what you are expecting. You can click directly on the symbol at the top left of each column and it will give you a drop down menu.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Bath299 Frequent Visitor
Frequent Visitor

Re: Issue with Power of DAX formula.

Capture.JPG





I have checked everything on the Advanced Query and everything is labeled with a decimal Number, except Global Parent name which is text. Here is a copy of the measurement i am trying to accomplish.

 

 

Bath299 Frequent Visitor
Frequent Visitor

Re: Issue with Power of DAX formula.

It may help to note, that the matrix table has a text, 4 decimals, and the measurement should be a %

 

Super User IV
Super User IV

Re: Issue with Power of DAX formula.

@Bath299 ,

Try a DIVIDE ().  I could get it to work then.

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Super User IV
Super User IV

Re: Issue with Power of DAX formula.

@Bath299 ,

Can you go back to the data and make it not a percentage?  Which one is the percentage, the EV/SV? I could get a measure to work in a card, and not a matrix, and then when I did a DIVIDE() it worked.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Bath299 Frequent Visitor
Frequent Visitor

Re: Issue with Power of DAX formula.

@Nathaniel_C 

 

Tried that as well, quick question, since some of my data, in the big picture can have zero's should i put in a filter or exclusion to exclude and data with zero's if so, what type of statement would you use.

Thanks for all the help.

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors