Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Assume your measure is M1 and group by is type, try like
sumx(summarize(Table,Table[Type],"_1", [M1]),[_1])
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
100 | |
83 | |
76 | |
65 |
User | Count |
---|---|
120 | |
111 | |
94 | |
83 | |
77 |