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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

RE: Need percentage column

Hi All,

 

i want to calucalte the  New column

1 .serviceorders/Service orders units    (show in %  two decimal)

2.Service orders+Service order units 

3.Service orders-Service order units 

 

i am new to PBI. 

 

so how to add new measures (caluclated measures )  can anyone guide the steps to perform the above measures?

 

Note:  i cannot   see how to  attach PBI file 😞

 

Best

Chantytable1.PNG

1 ACCEPTED SOLUTION

@Anonymous

 

Ok, so let's try this, where Table1 is the name of your table:

 

1. Create these two measures: 

SUM_ServiceOrder($) = SUM(Table1[ServiceOrder($)])

 

SUM_ServiceOrderUnits = SUM(Table1[Service Order Units])

 

2. Using the two measures above, create the three measures you were asking for in your initial post:

a) serviceorders/Service orders units    (show in %  two decimal)

 

Measure1 = DIVIDE([SUM_ServiceOrder($)], [SUM_ServiceOrderUnits])

Under 'Modeling' you can set the format that you like (%, decimals etc)

 

b) Service orders+Service order units 

Measure1 = [SUM_ServiceOrder($)] + [SUM_ServiceOrderUnits]

c) Service orders-Service order units 

 

Measure1 = [SUM_ServiceOrder($)] - [SUM_ServiceOrderUnits]

 

3. Place the three newly created measures in values of the matrix visual, with Region and Country in rows of the matrix as you already had.    

View solution in original post

9 REPLIES 9
AlB
Super User
Super User

Hi @Anonymous

 

You have to upload the pbix somewhere else (Dropbox, OneDrive...) and share the URL here. Or upload the file to a site like tinyupload.com (no sign-up required)

 

Regarding your question. Do you need 1 or 3 calculated columns (since you mention 1. 2. 3.)?

Do you need measures or calculated columns, as you seem to be referring to both?

 

Cheers

Anonymous
Not applicable

Thanks for your Quick response.

 

i need  3 seperate columns      for each measure.

@Anonymous

 

To be able to help, I would need you to share the pbix or otherwise explain what 'serviceorders' and 'Service orders units' are. 

Are they measures?

If so please show the code.

If not, how did you build the visual you are showing? Are the columns you show for 'serviceorders' and 'Service orders units'  the Sum of those fields?Some other operation? 

It would also help if you show the structure of the table(s) in your data model.

 

If you can share the pbix that's the easiest/quickest.

Anonymous
Not applicable

Thanks.

i have started doing some sample on PBI  today only..    just loaded one excel file 

1. those are measure columns

2. i have only one table.

3. im unable to share pbix file...:(   its not allowed from this user.

 

Best

Chanty

@Anonymous

 

My answers/comments to your reply in red:

 

i have started doing some sample on PBI  today only..    just loaded one excel file 

1. those are measure columns

Ok but how did you build them? Is it by summarizing them using SUM in this menu? I need to know that to build the other measures. I mean, what the columns are showing now in your visual, is the SUM of 'Service Order Units' for every country? Is it also the SUM for 'Service Order ($)'?

 

image.png

 

2. i have only one table.

All right. Show it. Just go to the table in Power BI, click on it, use 'Copy table' and paste it here.

3. im unable to share pbix file...Smiley Sad   its not allowed from this user

Like I said before, you have to host the file elsewhere and share the URL here. For instance go to tinyupload.com (no sign-up required) and upload your pbix file. You'll get an URL. Paste it here.

This is an example of a file that I uploaded:

http://s000.tinyupload.com/index.php?file_id=19863249533058382470

 

 

 

Anonymous
Not applicable

yeah its  sum(serviceorders)   by region only.

 

i used the same link to upload file but unable to do it. my company laptop not allowing to upload the fie.

 

RegionCountryParent WarrantyService Order ($)Hardware Order ($)Total Order($)O PRateService Order UnitsHardware Order UnitsTotal UnitsAttach Rate

RegionCountryParent WarrantyService Order ($)Hardware Order ($)Total Order($)O PRateService Order UnitsHardware Order UnitsTotal UnitsAttach Rate

RegionCountryParent WarrantyService Order ($)Hardware Order ($)Total Order($)O PRateService Order UnitsHardware Order UnitsTotal UnitsAttach Rate

EMEABelgiumWarranty Data Unavailable41236.36931531927.444531573163.81350.001307765567854391264314112.531315376.5310.00402403557723713
EMEABelgium3 Year Std Warranty618015.51511216943.53691834959.0520.5078423906784639264.87216700.00225964.8740.554782688049978
EMEABelgium1 Year Std Warranty581956.7203147353.6936729310.41393.949386717646555710.7284089.6749800.4021.39637731516008
EMEABelarus3 Year Std Warranty1663.1119915.239421578.34940.0835094154077806187902772.07777777777778
EMEABelarus1 Year Std Warranty48707431.879812301.87980.655285086822852487775646.32467532467532
EMEAAzerbaijian3 Year Std Warranty15060589.1160739.110.00247569241403282683890.072289156626506
Asia PacificBangladesh3 Year Std Warranty42800.79156791.32199592.110.272979333294726427865890850.0493185493185493
Asia PacificBangladesh1 Year Std Warranty89711.42087.259891798.659842.9804665427855245390563513.448717948718
EMEABelarusWarranty Data Unavailable01442609.24311442609.243100559555950
EMEABalticsWarranty Data Unavailable0-4752.2793-4752.27930030300
EMEABaltics3 Year Std Warranty0-1283.5612-1283.561200-2-20
EMEABaltics1 Year Std Warranty0-15879.5815-15879.581500-49-490
EMEAAzerbaijianWarranty Data Unavailable01422370.19651422370.196500305030500
Asia PacificBangladeshWarranty Data Unavailable08054278.828054278.82001486641486640
EMEABelgiumUNCLASSIFIED BUNDLES150620.51860150620.518606259.21606259.2160
EMEABelarusUNCLASSIFIED BUNDLES2506.552502506.5525011201120
EMEAAzerbaijianUNCLASSIFIED BUNDLES1421.729601421.72960730730
EMEAAzerbaijian1 Year Std Warranty5405403030
Anonymous
Not applicable

yeah its  sum(serviceorders)   by region only.

 

i used the same link to upload file but unable to do it. my company laptop not allowing to upload the fie.

 

RegionCountryParent WarrantyService Order ($)Hardware Order ($)Total Order($)O PRateService Order UnitsHardware Order UnitsTotal UnitsAttach Rate

RegionCountryParent WarrantyService Order ($)Hardware Order ($)Total Order($)O PRateService Order UnitsHardware Order UnitsTotal UnitsAttach Rate

EMEABelgiumWarranty Data Unavailable41236.36931531927.444531573163.81350.001307765567854391264314112.531315376.5310.00402403557723713
EMEABelgium3 Year Std Warranty618015.51511216943.53691834959.0520.5078423906784639264.87216700.00225964.8740.554782688049978
EMEABelgium1 Year Std Warranty581956.7203147353.6936729310.41393.949386717646555710.7284089.6749800.4021.39637731516008
EMEABelarus3 Year Std Warranty1663.1119915.239421578.34940.0835094154077806187902772.07777777777778
EMEABelarus1 Year Std Warranty48707431.879812301.87980.655285086822852487775646.32467532467532
EMEAAzerbaijian3 Year Std Warranty15060589.1160739.110.00247569241403282683890.072289156626506
EMEAAlgeriaWarranty Data Unavailable-16361211397.69771209761.6977-0.001350506116287132575357550.000347644707109334
EMEAAlgeria3 Year Std Warranty2417.3253-103027.6226-100610.2973-0.0234628853796341126-4185-3.07317073170732
EMEAAlgeria1 Year Std Warranty2646-45940.88-43294.88-0.0575957622056873067970.447761194029851
EMEAAdriaticWarranty Data Unavailable22966.849516707310.704716730277.55420.0013746586692458615841524031539870.0103934961910199
EMEAAdriatic3 Year Std Warranty63881.4726416606.0886480487.56120.1533378276219462019546374820.369577155409116
EMEAAdriatic1 Year Std Warranty262833.608989188.4950999999352022.1042.9469452153588476823429111112.24030329542141
Asia PacificBangladesh3 Year Std Warranty42800.79156791.32199592.110.272979333294726427865890850.0493185493185493
Asia PacificBangladesh1 Year Std Warranty89711.42087.259891798.659842.9804665427855245390563513.448717948718
EMEABelarusWarranty Data Unavailable01442609.24311442609.243100559555950
EMEABalticsWarranty Data Unavailable0-4752.2793-4752.27930030300
EMEABaltics3 Year Std Warranty0-1283.5612-1283.561200-2-20
EMEABaltics1 Year Std Warranty0-15879.5815-15879.581500-49-490
EMEAAzerbaijianWarranty Data Unavailable01422370.19651422370.196500305030500
Asia PacificBangladeshWarranty Data Unavailable08054278.828054278.82001486641486640
EMEABelgiumUNCLASSIFIED BUNDLES150620.51860150620.518606259.21606259.2160
EMEABelarusUNCLASSIFIED BUNDLES2506.552502506.5525011201120
EMEAAzerbaijianUNCLASSIFIED BUNDLES1421.729601421.72960730730
EMEAAzerbaijian1 Year Std Warranty5405403030
EMEAAdriaticUNCLASSIFIED BUNDLES83624.1817083624.181703889038890

@Anonymous

 

Ok, so let's try this, where Table1 is the name of your table:

 

1. Create these two measures: 

SUM_ServiceOrder($) = SUM(Table1[ServiceOrder($)])

 

SUM_ServiceOrderUnits = SUM(Table1[Service Order Units])

 

2. Using the two measures above, create the three measures you were asking for in your initial post:

a) serviceorders/Service orders units    (show in %  two decimal)

 

Measure1 = DIVIDE([SUM_ServiceOrder($)], [SUM_ServiceOrderUnits])

Under 'Modeling' you can set the format that you like (%, decimals etc)

 

b) Service orders+Service order units 

Measure1 = [SUM_ServiceOrder($)] + [SUM_ServiceOrderUnits]

c) Service orders-Service order units 

 

Measure1 = [SUM_ServiceOrder($)] - [SUM_ServiceOrderUnits]

 

3. Place the three newly created measures in values of the matrix visual, with Region and Country in rows of the matrix as you already had.    

Anonymous
Not applicable

Thanks alot for your steps 🙂 your helo is highly appreciated.

 

i have done the same way 🙂  before reading your reply.  

 

i normally added it worked.  then i saw your reply  its almost similar.

 

Anyway thanks Day1 is good to know so many things in PBI ..   

 

 

Best

Suresh

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.