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
How we can move column on left or first position in matrix/ Table? Using logic without using formatting tool.
@amitchandak
Solved! Go to Solution.
Hi @Ali123 ,
The only way to make this to work is to create a new measure with the total value, I assume that you are using a column to get the Surly and Trek values on the matrix so if you create a table with the following setup:
| ID | Type |
| 1 | Total |
| 2 | Surly |
| 3 | Trek |
Then do a Sort by on the column of the Type by the ID.
After create a measure similar to this:
Total Value =
SWITCH (
SELECTEDVALUE ( TotalTable[Type] ),
"Total", SUM ( 'Surly/Trek'[Value] ),
CALCULATE (
SUM ( 'Surly/Trek'[Value] ),
'Surly/Trek'[Type] = SELECTEDVALUE ( TotalTable[Type] )
)
)
Result below and in attach PBIX:
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThanks bro.
Hi @Ali123 ,
The only way to make this to work is to create a new measure with the total value, I assume that you are using a column to get the Surly and Trek values on the matrix so if you create a table with the following setup:
| ID | Type |
| 1 | Total |
| 2 | Surly |
| 3 | Trek |
Then do a Sort by on the column of the Type by the ID.
After create a measure similar to this:
Total Value =
SWITCH (
SELECTEDVALUE ( TotalTable[Type] ),
"Total", SUM ( 'Surly/Trek'[Value] ),
CALCULATE (
SUM ( 'Surly/Trek'[Value] ),
'Surly/Trek'[Type] = SELECTEDVALUE ( TotalTable[Type] )
)
)
Result below and in attach PBIX:
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThe Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 136 | |
| 102 | |
| 68 | |
| 66 | |
| 58 |