cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Bath299
New Member

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!




Highlighted
Bath299
New Member

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
New Member

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
New Member

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
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors