Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Lenni96
Frequent Visitor

Blank Function Problem

Hey Community. I have a big problem by using comparisons with the BLANK Function.

My formula is:

 

CAGR = IF('010101'[2013]<0;50000;(IF(AND(IF('010101'[2013]=BLANK();'010101'[2012];'010101'[2013])>0;IF('010101'[2011]=BLANK();'010101'[2010];'010101'[2011])<0);ABS(((IF('010101'[2013]=BLANK();'010101'[2012];'010101'[2013])/(IF('010101'[2011]=BLANK();'010101'[2010];'010101'[2011])))^(1/3)-1)*100);(((IF('010101'[2013]=BLANK();'010101'[2012];'010101'[2013])/(IF('010101'[2011]=BLANK();'010101'[2010];'010101'[2011])))^(1/3))-1)*100)))

 

In the end, Power BI tells me that "an argument of function "power" has the wrong data type or the result is too large or too small."

I have no clue what I did wrong. It seems to be the Blank function because the same formula works in excel.

 

Thank you in advance!

 

Lenni96

 
8 REPLIES 8
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Lenni96,

 

I have tested the formula using sample data created by myself, it worked fine, without prompting any error message. So, I assume it is related to your actual data. Please check the data type of each column to make sure it wasn't changed after import into Power BI desktop. If possible, please share your sample data so that we reproduce your issue and try to resolve it.

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

My mistake was that I used too many parenthesis. The error report put me on the wrong track.

However, I still have to deal with the following problem:

- When I type in this part of my formula, I still receive the error report: "An argument of function 'POWER' has the wrong data type or the result is too large or too small."

 

((IF('080101'[2014]=BLANK();'080101'[2013];'080101'[2014])/IF(IF('080101'[2014]=BLANK();'080101'[2013];'080101'[2014])='080101'[2013];'080101'[2011];'080101'[2012]))^(1/3)-1)*100

 

(IF('080101'[2014]=BLANK();'080101'[2013];'080101'[2014])/IF(IF('080101'[2014]=BLANK();'080101'[2013];'080101'[2014])='080101'[2013];'080101'[2011];'080101'[2012])^(1/3)-1)*100

 

- However, if delete the underlined parenthesis, the formula works and I do not get any error reports. Nevertheless, the formula changes. What can i do to remain the results of the first formula withouth the error report?

 

 

 

 

Anyone?

Have you tried using the DIVIDE(A, B) function instead of the traditional A / B ?

Lenni96
Frequent Visitor

Even If I try to avoid the BLANK Function and use "010101'[2013] =0" instead, it still shows me "An argument of function "power" has the wrong data type or the result is too large or too small.

"Power" is going to be the carat ^ symbol.  Check your order of operations and groupings (might need more parentheses) and make sure all the columns referenced are a number datatype.

 

Also, you can use this link to format the DAX code to be easier to read: http://www.daxformatter.com/

All the columns referenced are a number datatype. In respect of the order of operations and groupings, I tried some options but nothing really worked out.

Here is your formula formatted for DAX

 

CAGR = 
IF (
    '010101'[2013] < 0,
    50000,
    (
        IF (
            AND (
                IF ( '010101'[2013] = BLANK (), '010101'[2012], '010101'[2013] )
                    > 0,
                IF ( '010101'[2011] = BLANK (), '010101'[2010], '010101'[2011] )
                    < 0
            ),
            ABS (
                (
                    (
                        IF ( '010101'[2013] = BLANK (), '010101'[2012], '010101'[2013] )
                            / ( IF ( '010101'[2011] = BLANK (), '010101'[2010], '010101'[2011] ) )
                    )
                        ^ ( 1 / 3 )
                        - 1
                )
                    * 100
            ),
            (
                (
                    (
                        IF ( '010101'[2013] = BLANK (), '010101'[2012], '010101'[2013] )
                            / ( IF ( '010101'[2011] = BLANK (), '010101'[2010], '010101'[2011] ) )
                    )
                        ^ ( 1 / 3 )
                )
                    - 1
            )
                * 100
        )
    )
)

Since I don't have your data model I can't test the performance, but maybe looking at it spread out like this will help you think of a way forward. If you want to share an anonymized pbix file, I can play with that too.

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors