Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello everyone
I have the following table in Excel, I'm trying to do the same in PowerBI, but the result is not as expected.
I've created a measure for UnitsbyType
Solved! Go to Solution.
Hi @sonam7 ,
You may create a measure like DAX below .
Total Units=
VAR _table = SUMMARIZE( 'MASCI vwEnvironments', 'MASCI vwEnvironments'[Branch], "_Value", [UnitbyType])
RETURN
IF(HASONEVALUE('MASCI vwEnvironments'[Branch]), [UnitbyType], SUMX(_table,[_Value]))
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @sonam7 ,
You may create a measure like DAX below .
Total Units=
VAR _table = SUMMARIZE( 'MASCI vwEnvironments', 'MASCI vwEnvironments'[Branch], "_Value", [UnitbyType])
RETURN
IF(HASONEVALUE('MASCI vwEnvironments'[Branch]), [UnitbyType], SUMX(_table,[_Value]))
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 35 | |
| 34 | |
| 27 |
| User | Count |
|---|---|
| 137 | |
| 97 | |
| 74 | |
| 66 | |
| 65 |