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
Anonymous
Not applicable

How to Summarize columns? (Dumb question sorry..)

Hi all, I'm sorry to bother you with this novice question, but I'm at a loss, both by lack of skills and lack of english lingo. Hope I'll make sense.

 

Problem: I have a tab in excel with data, in that tab there's different columns with data. In PBI Desktop I want to do a simple equation in a measure X divded by Y. To gather X & Y I want to make a measure with the sum of different columns.

 

Here's what it looks like.

Skärmklipp.PNG

 

X would be Android+Browser+iPad+iPhone+Others+Windows

Y would be Android+iPad+iPhone+Others+Windows

Then I'll be able to do a measure to illustrate the % of mobile users vs the total amount of users.

 

Please lend me a hand here!

 

Best of regards

Max.

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous ,

Looking at the picture, this is what I can think of


X = sumx(table,table[Android]+table[Browser]+table[iPad]+table[iPhone]+table[Others]+table[Windows])

Y = sumx(table,table[Android]+table[iPad]+table[iPhone]+table[Others]+table[Windows])

z= divide([X],[Y])

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous ,

Looking at the picture, this is what I can think of


X = sumx(table,table[Android]+table[Browser]+table[iPad]+table[iPhone]+table[Others]+table[Windows])

Y = sumx(table,table[Android]+table[iPad]+table[iPhone]+table[Others]+table[Windows])

z= divide([X],[Y])

Anonymous
Not applicable

That worked like magic, thank you very much. Hope I'll be able to repay you in the future.

 

Best of regards,

Max.

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.