This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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êsCheck out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 26 | |
| 23 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 61 | |
| 47 | |
| 27 | |
| 23 | |
| 18 |