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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
NKTMS
Frequent Visitor

Total Sum of a column as a measure

NKTMS_0-1723193423001.png

In this table, I wasn 80Mil against all the machinetypes. I created the measure electricity total usuage like this:

Electricity Total Usage =
CALCULATE(
    SUM('Fact ResourceUsage'[Usage]),
    'Fact ResourceUsage'[ResourceTypeKey] = 1,
    ALL('Fact ResourceUsage'[MachineTypeKey])
)
But its just giving the total consumption of that particular machine type
2 ACCEPTED SOLUTIONS
aduguid
Super User
Super User

Try this measure 

Electricity Total Usage =
CALCULATE(
    SUM('Fact ResourceUsage'[Usage]),
    'Fact ResourceUsage'[ResourceTypeKey] = 1,
    REMOVEFILTERS('Fact ResourceUsage'[MachineTypeKey])
)

View solution in original post

Anonymous
Not applicable

Hi aduguid ,thanks for the quick reply, I'll add more.

Hi @NKTMS ,

Make sure that the field you use in your visuals is from the fact table and not from the dimension table.

vzhouwenmsft_1-1723442191080.png

Or check if you are referencing the wrong column in DAX.

vzhouwenmsft_1-1723442191080.png

vzhouwenmsft_2-1723442717556.png

If I understand you wrongly, please provide simple data and show the expected results in pictures.

How to provide sample data in the Power BI Forum - Microsoft Fabric Community

 

Best Regards,
Wenbin Zhou

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi aduguid ,thanks for the quick reply, I'll add more.

Hi @NKTMS ,

Make sure that the field you use in your visuals is from the fact table and not from the dimension table.

vzhouwenmsft_1-1723442191080.png

Or check if you are referencing the wrong column in DAX.

vzhouwenmsft_1-1723442191080.png

vzhouwenmsft_2-1723442717556.png

If I understand you wrongly, please provide simple data and show the expected results in pictures.

How to provide sample data in the Power BI Forum - Microsoft Fabric Community

 

Best Regards,
Wenbin Zhou

 

aduguid
Super User
Super User

Try this measure 

Electricity Total Usage =
CALCULATE(
    SUM('Fact ResourceUsage'[Usage]),
    'Fact ResourceUsage'[ResourceTypeKey] = 1,
    REMOVEFILTERS('Fact ResourceUsage'[MachineTypeKey])
)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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