The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 |
---|---|
11 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
23 | |
14 | |
13 | |
10 | |
8 |