The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
In this table, I wasn 80Mil against all the machinetypes. I created the measure electricity total usuage like this:
Solved! Go to Solution.
Try this measure
Electricity Total Usage =
CALCULATE(
SUM('Fact ResourceUsage'[Usage]),
'Fact ResourceUsage'[ResourceTypeKey] = 1,
REMOVEFILTERS('Fact ResourceUsage'[MachineTypeKey])
)
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.
Or check if you are referencing the wrong column in DAX.
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
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.
Or check if you are referencing the wrong column in DAX.
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
Try this measure
Electricity Total Usage =
CALCULATE(
SUM('Fact ResourceUsage'[Usage]),
'Fact ResourceUsage'[ResourceTypeKey] = 1,
REMOVEFILTERS('Fact ResourceUsage'[MachineTypeKey])
)
User | Count |
---|---|
16 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
24 | |
13 | |
13 | |
8 | |
8 |