Set Fixed Column Width in Matrix in Power BI

  Рет қаралды 39,716

BI Gorilla

BI Gorilla

Күн бұрын

Пікірлер: 44
@davidbriggs7734
@davidbriggs7734 3 жыл бұрын
I'm responding to the issue with a rolling 13 months where the new month doesn't respect the existing column width. Here's an idea. Pick a Fixed Width Font such as Consolas. Then, create a New Column where you add a fixed number of spaces to the month name such that all month names end up with the same length: Fixed Width Month Name = [Month Name] & REPT(" ", 10 - LEN([Month Name])) Thus, the column name itself sets the column width. You'll also have to turn off the column header word wrap -- I discovered that Power BI ignores trailing spaces in the column header if word wrap is turned on.
@BIGorilla
@BIGorilla 3 жыл бұрын
Hey David. Absolutely! Thanks for adding that. That should work as long as the month names take up a width at least as wide as the widest number. What you could do to add an invisible character, is copy the following character and paste it in there: "⠀". It's not a regular space but the U+2800 "Braille Pattern Blank" Character. It has worked for me to add blank spaces to measures in the values field, or to columns. Cheers!
@happytimesvlogs
@happytimesvlogs Жыл бұрын
@@BIGorillai eventually used Month Name Fixed Width = REPT(UNICHAR(10240),5) & [Month Name] & REPT(UNICHAR(10240),5) and it worked like a charm. thank you for posting this.
@shahabh8942
@shahabh8942 Жыл бұрын
this works if you're not using slicers. Once you apply filters via a slicer it starts to reset the auto-width, even though it's turned off. Any thoughts on a workaround?
@mienzillaz
@mienzillaz 2 жыл бұрын
Auto size do not work. 1. When you have dynamic measure matrix won't update itself until something will be changed directly in matrix 2. Switching tabs in PBI desktop still changes columns width. Of course not your fault, MS did awful job here
@BIGorilla
@BIGorilla 2 жыл бұрын
What you can also do, is click a column in your matrix (sort it). Or you can click on refresh visuals in the performance analyser. Both will force an update of the visuals. But yes. Absolutely horrific behavior of the tool, YIKES
@petercsapo3403
@petercsapo3403 4 ай бұрын
If someone wants to fix the size of the columns with more measure, simply rename the measue name to the length of the width they want. To make this not visible, fill in the unnecessary characters with space. E.g. 16x space+Spain+16x space
@tony9146
@tony9146 11 ай бұрын
It is absurd that PowerBi makes us do all this work just to make a column fit the size of the page.
@pietjehans206
@pietjehans206 2 жыл бұрын
Unfortunatly there are a lot of exceptions when this doesn't work.
@ezekiel0606
@ezekiel0606 10 күн бұрын
Fantastic Workaround!
@Phoenixspin
@Phoenixspin 3 жыл бұрын
You didn't leave the pleasing output on the screen for very long. I wasn't pleased. I felt cheated.
@BIGorilla
@BIGorilla 3 жыл бұрын
Haha who knows it may come back later :)
@ushakiranmai3019
@ushakiranmai3019 9 ай бұрын
Hi @BI Gorilla. Could you please suggest me how to achieve this in case of more than one measure.
@gmartinezm
@gmartinezm Жыл бұрын
Thanks for this video, I have a question, what if you always want to see ALL the countries and show up 0 when no data? THoughts?
@fr1sket363
@fr1sket363 3 жыл бұрын
This is a good trick when your column headers dont change. I have a report where i have a matrix with a rolling 13 months in the column headers. unfortunately when the old month rolls off and the new one rolls one, the new month does not respect the existing column width, it's maddening. A better solution would be for the power bi devs to add a fixed column width setting, like excel has 🤔. Maybe one day 😁.
@BIGorilla
@BIGorilla 3 жыл бұрын
No solution for that one yet. Perhaps use index numbers in the headers.. And create a separate header with the month numbers? Separate as in a different visual just above it. Not ideal, but it's something. Cheers
@fr1sket363
@fr1sket363 3 жыл бұрын
@@BIGorilla thanks 😀
@aliyanrazzaq7521
@aliyanrazzaq7521 Жыл бұрын
What if we have multiple Values? How can we adjust same width for all of them?
@Kev3542
@Kev3542 2 жыл бұрын
Excellent workaround. Thanks.
@sh3ll451
@sh3ll451 3 жыл бұрын
Very cool, I'll be using this! :)
@BIGorilla
@BIGorilla 3 жыл бұрын
Awesome Matthew! It's a temporary solution for as long as the Power BI team doesn't implement a better way. But it works, enjoy!
@luisfernandomacedo1451
@luisfernandomacedo1451 Жыл бұрын
Great! Do you know how can I freeze the first column?
@vishaljhaveri7565
@vishaljhaveri7565 Жыл бұрын
Auto-Size column width. Turn on auto-size column width. Create a measure, say, Measurex = REPT("|", 10) which will give "|" symbol 10 times. Replace 10 with an appropriate number. And then pass this measure in values. Switch of Auto-Size column width. Replace the Measurex with required/actual measure.
@knowtechwithaman7254
@knowtechwithaman7254 Жыл бұрын
If I have 7-8 measures as columns in matrix, it doesn't work. Pls let me know
@16mohitkumar
@16mohitkumar 2 жыл бұрын
Nice trick :) Thanks for sharing
@Mex_Music
@Mex_Music Жыл бұрын
Just what I was looking for, thanks!
@kummithavenkatareddy2302
@kummithavenkatareddy2302 Жыл бұрын
How to increase the height of row in Matrix?
@julianazhou7676
@julianazhou7676 Жыл бұрын
Looks like very smart, so I save it for later.
@thehaijon
@thehaijon Жыл бұрын
Thanks a lot! It worked!
@rchong3289
@rchong3289 3 жыл бұрын
Thanks, really useful. I have a common repeating situation to show 12 months column in matrix but the numbers keep changing so sometimes even I made the width fixed some cells would be longer than the initial fix width, is it possible to auto scale the whole matrix to be smaller if the final total width is outside the rectangle ?
@BIGorilla
@BIGorilla 3 жыл бұрын
Unfortunately, the only option right now is to have the width as auto, or set it manually. When your widest cell becomes even wider, the fixed width option does not automatically adjust. David Briggs suggested as idea in the comments, and I added a suggestion there too. Perhaps it can help you :) Regards, Rick
@lildebao6934
@lildebao6934 Жыл бұрын
Thx a lot
@Buxoylike
@Buxoylike 2 жыл бұрын
Nice trick but unfortunately does not work if you don't have columns in your matrix.
@BIGorilla
@BIGorilla 2 жыл бұрын
Hey otabek, that sounds about right. Without columns how could you need a fixed width column? Help me understand 😁
@akpokemon
@akpokemon Жыл бұрын
@@BIGorilla lol
@monikaklima5415
@monikaklima5415 2 жыл бұрын
Hi, thank you for a trick. Any idea how to use it in case of more than one measure displayed in months? Thank you in advance!
@BIGorilla
@BIGorilla 2 жыл бұрын
Hi Monika, Yes! You can add the same logic within those two measures (perhaps as a variable). After returning the characters in the columns (for both measures) you can turn off the auto-size column width. Then change back the measure to the original calculation. Hope that helps!
@monikaklima5415
@monikaklima5415 2 жыл бұрын
@@BIGorilla Hi there, thanks for a quick answer. At the end I found out that I need another solution as my column headers / measure names are too long and I would like to wrap them all at once, not one by one by each month, by some trick. This one works only for columns wider than the column name or? Thank you anyhow. Best regards, Monika
@monikaklima5415
@monikaklima5415 2 жыл бұрын
It is ok, just if somebody else is looking for the same: here I found the solution to my specific task: kzbin.info/www/bejne/nZmTmJaVa9yngpI thank you.
@bobbobertson7568
@bobbobertson7568 Жыл бұрын
Swedes are awesome! My boss is going to love this
@BIGorilla
@BIGorilla Жыл бұрын
Whereas I lived in Stockholm for a while I'm not actually Swedish. But glad to read you're sharing the content :)
@akpokemon
@akpokemon Жыл бұрын
@@BIGorilla your manner of speaking reminded me of PewDiePie, who is Swedish. So I thought you might be too. I apparently wasn't too far off
@Deoreth
@Deoreth 3 жыл бұрын
NIce
@BIGorilla
@BIGorilla 3 жыл бұрын
Simple but effective. Curious. What workarounds do you use in Power BI?
Improve the Look and Feel of Tables and Matrix in Power BI
14:00
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 23 МЛН
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 117 МЛН
Configuring Incremental Refresh in Power BI
16:01
BI Gorilla
Рет қаралды 90 М.
How To Hide Columns In Matrix Visual - Calculation Groups and Power BI
11:22
PeryTUS - Power BI How To
Рет қаралды 9 М.
Set Default Slicer Selection to Current Year or Month in Power BI
14:34
Power BI Tricks Specific Matrix Columns Width
3:55
AI for Everyone
Рет қаралды 6 М.
Creating custom visuals in Power BI with DAX
35:04
SQLBI
Рет қаралды 15 М.
Dynamic Column Headers (with Field Parameters) in Power BI!
7:44
Havens Consulting
Рет қаралды 8 М.
How To Freeze Multiple Columns in Power BI Matrix Visual - Easy Tutorial
5:57
MASTERING Bar Charts in Power BI | No more Cut Labels
15:34
How to Power BI
Рет қаралды 121 М.
Fast Running Totals in Power Query (Complete Guide)
29:16
BI Gorilla
Рет қаралды 30 М.
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 23 МЛН