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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Replace all values for a single value for multiple lines without sum

Hello guys,

 

I have one table with multiple (hundreds of thousands) lines, those lines are related to servers and there multiple coluns on it, one of those are the Costs. There are multiple columns for the same server and with different costs, i  dont know and i can't discover yet how each line is calculated, but probably is something related to the time of comsumption.

What I am trying to do it, related the servername and inject a fixed price for it, but this fixed price should be applied just once for all lines for the given servername.

Example : i have a server SRV01 and the total cost for it for the year is 1000, this 1000 is spread to multiple lines in the datasource, what i want to do is replace those multiple lines by just one value, let say 800.

I have tried to create a table with the prices and VM sizes and a relationship between this table and my other costs table where i have the same server size column, when i get the COST from the new table and the servername from the costs table, it brings me each line with the fixed price, but does not sum it, and need to sum to present the whole price for all vms or filtering by other field, like project name or country.

Do you guys know another way to do that?

1 REPLY 1
littlemojopuppy
Community Champion
Community Champion

In Power Query you could group by (to eliminate multiple lines per server) and insert a value.  Or you could create a new table in your data model to summarize by server and insert a column with the value.

Could you provide some additional context or possibly some data to illustrate what you want to do?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.