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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply

Excel to Power Bi Report

Hello,

I am trying to convert excel report to power bi report,

  1. In excel $ is for constant but in power bi is there any options available?
  2. How to write below excel formula in power bi?

=IFERROR(AVERAGEIF('Historical '!$A$3:$X$100687,'Current Year '!$A2,'Historical '!$X$3:$X$100687),"No AUP ")

Can anyone help me?

Thanks

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @tejapowerbi123,

 

There is no such a corresponding symbol that works like $ to specify a constant cell value in Power BI. We should specify a column name and hardcode the actual value inside a cell in DAX formula. The above excel formula can be converted to DAX similar to below:

New Column =
IFERROR (
    CALCULATE (
        AVERAGE ( TableName[Value] ),
        FILTER ( TableName, <"Filter Expression"> )
    ),
    "No AUP"
)

 

You should replace the underlined part with the actual filter context, like TableName[Column1]="Category1" or TableName[Column1]=TableName[Column2]

 

For more advice, please share sample data and show us the desired result which you have got in Excel. How to Get Your Question Answered Quickly

 

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.

View solution in original post

1 REPLY 1
v-yulgu-msft
Employee
Employee

Hi @tejapowerbi123,

 

There is no such a corresponding symbol that works like $ to specify a constant cell value in Power BI. We should specify a column name and hardcode the actual value inside a cell in DAX formula. The above excel formula can be converted to DAX similar to below:

New Column =
IFERROR (
    CALCULATE (
        AVERAGE ( TableName[Value] ),
        FILTER ( TableName, <"Filter Expression"> )
    ),
    "No AUP"
)

 

You should replace the underlined part with the actual filter context, like TableName[Column1]="Category1" or TableName[Column1]=TableName[Column2]

 

For more advice, please share sample data and show us the desired result which you have got in Excel. How to Get Your Question Answered Quickly

 

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.