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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
tusharpk99
New Member

Stuck due to columns total while rows correct - two data sources

Dear All. I am stuck with a unique

I need to multiply countries revenue with a % factor while the rows are correct, column total incorrect.

So i used DAX of SUMX but it has error of 1M + rows.

I have two sources of Power BI dataset and factor% multipliers comes from an online excel file.dds.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @tusharpk99 ,

Below is my table:

vxiandatmsft_0-1699257698985.png

Below is my table1:

vxiandatmsft_1-1699257714260.png

Merge the two tables into a single table(Left Outer):

vxiandatmsft_2-1699257744208.png

The following DAX might work for you:

 

Measure = 
  SUMX(
    Merge1,
    Merge1[Revenue] * Merge1[Table1.Fac]
  )

 

The final output is shown in the following figure:

vxiandatmsft_3-1699257800236.png

Best Regards,

Xianda Tang

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

4 REPLIES 4
Anonymous
Not applicable

Hi @tusharpk99 ,

Below is my table:

vxiandatmsft_0-1699257698985.png

Below is my table1:

vxiandatmsft_1-1699257714260.png

Merge the two tables into a single table(Left Outer):

vxiandatmsft_2-1699257744208.png

The following DAX might work for you:

 

Measure = 
  SUMX(
    Merge1,
    Merge1[Revenue] * Merge1[Table1.Fac]
  )

 

The final output is shown in the following figure:

vxiandatmsft_3-1699257800236.png

Best Regards,

Xianda Tang

If this post helps , then please consider Accept it as the solution to help the other members find it more quickly.

Rupak_bi
Impactful Individual
Impactful Individual

Hi,

If you do it in column, It will work. bring the % factors in your dataset based on the relationship and then create a calculated column to multiply.

Rupak_bi_0-1699085034305.png

 



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

how to bring % factors in the dataset from the excel file ? i tried but it shows the error.

Column cannot be pushed to the remote data source and cannot be used in this scenario

Rupak_bi
Impactful Individual
Impactful Individual

you may make a relationship based on country names to connect both the tables and then bring the % factors in power bi dataset query table using lookup value or related dax function in a new calculated column.



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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