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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
nuovo2
Regular Visitor

Measures

Hello 

I have about 10,000 member names and their country affiliation in an Excel spreadsheet. I imported this table into PowerBi Desktop and created a report. One of the reports shows me the number of members per country. I have the option of adding a calculation within this view in Power Bi. Country Y has X members, i.e. income for country Y is this much? The calculation method is relatively simple. Number of members multiplied by a fixed amount.

 

 

CountryMembers
UK345
GER400
FR500
3 ACCEPTED SOLUTIONS
negi007
Community Champion
Community Champion

@nuovo2 What i understand from this, you have a table which has list of all 10K memebrs and their country name. You wish to calculate total income for each country (Total Members * Income). So in this case, you can have second table where you will have country name and the income then you can link first and second table on the country name and do the calculation.

 

Total Income= count(members) * sum(income)

 

Please let us know if you wish to have something else. 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

View solution in original post

v-jayw-msft
Community Support
Community Support

Hi @nuovo2 ,

 

Create a measure.

income = calculate(distinctcount(member),allexcept(table,country))*number

 

Best Regards,

Jay

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

View solution in original post

Although I am new, I have also been able to implement your solution with success. I just want to add the thousands separator plus the euro symbol.

View solution in original post

5 REPLIES 5
v-jayw-msft
Community Support
Community Support

Hi @nuovo2 ,

 

Create a measure.

income = calculate(distinctcount(member),allexcept(table,country))*number

 

Best Regards,

Jay

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

Although I am new, I have also been able to implement your solution with success. I just want to add the thousands separator plus the euro symbol.

negi007
Community Champion
Community Champion

@nuovo2 What i understand from this, you have a table which has list of all 10K memebrs and their country name. You wish to calculate total income for each country (Total Members * Income). So in this case, you can have second table where you will have country name and the income then you can link first and second table on the country name and do the calculation.

 

Total Income= count(members) * sum(income)

 

Please let us know if you wish to have something else. 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

amitchandak
Super User
Super User

@nuovo2 The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Hallo, vielen Dank für Ihr Feedback. Ich habe bereits zwei Lösungsvorschläge erhalten. Ich bin noch sehr neu und versuche, mich Power BI auf autodidaktischer Basis beizubringen. Ich werde die beiden Lösungen ausprobieren und mich dann mit ihnen in Verbindung setzen. Danke noch einmal.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.