Conditionally Show/Hide Matrix Columns Using Calculation Groups

Поділитися
Вставка
  • Опубліковано 21 сер 2024

КОМЕНТАРІ • 70

  • @VladMZ
    @VladMZ 3 роки тому +1

    This is very, VERY useful! I just built a massive matrix visual that my clients wanted, and that I hate myself. This will help me to make it much more cleaner. Thank you!
    I just wish you'd do less of those very long collab videos that are impossible to watch in their entirety, and go back to these brief but very useful gems.

    • @HavensConsulting
      @HavensConsulting  3 роки тому +3

      Hi Vlad, since my channel's launch I've almost always released a video every Tuesday. I still do that today. The number of brief videos haven't decreased, I only added livestreams on Friday's. So if anything you're getting more content, not less. :)

  • @gerhardvanderwesthuizen1856
    @gerhardvanderwesthuizen1856 3 роки тому +1

    Great Thanks Reid. The solution I have been searching for the last 2 weeks. Now I don't have to control my different columns in a matrix with bookmarks and buttons!

  • @timgray7859
    @timgray7859 2 роки тому +2

    This is great, I've been using a similar technique to reduce the number of columns in a large matrix. A down side of using calculation groups this way is you lose the ability to click the column header to sort. I got around this by creating a specific placeholder measure using a disconnected table and SELECTEDVALUE() that allows users to chose what to sort by using a slicer. I use this value in a switch statement to determine what value is the "grand total" and set the matrix to sort by this measure. Not ideal, as I would rather have users click the column header rather than introduce another slicer to the page, but it works well enough.

  • @businessinsights_AlexRobe
    @businessinsights_AlexRobe 3 роки тому +2

    What an awesome technique! Works beautifully and really intuitive & fast - TOP! Thanks once more, Reid! 👍🙏

  • @cristian.angyal
    @cristian.angyal 3 роки тому +2

    Great video Reid! I’m already thinking for some real use-cases 😎. Thanks for sharing!

  • @ramank22787
    @ramank22787 2 роки тому

    You are the saviour, awesome video!!

  • @didierterrien6933
    @didierterrien6933 3 роки тому +1

    Brilliant !

  • @walteradamsbe
    @walteradamsbe 7 місяців тому

    Hi,
    Just wanted to let everyone know that, although this is a great solution in some situations, this way of working has a big limitation if you want to work with tooltip pages (showing an extra page with graphs/data when hovering over your matrix variable). It completely breaks the tooltip page functionality in fact.
    Since using these kind of calculation groups, in which the data is not related to the SELECTEDMEASURE(), my overlays simply show the number on which I'm hovering and no longer the drilldown filter variables setup in the overlay page.
    Since my reports heavily rely on this, I probably will have to abandon this approach unless I find some way around it.

    • @HavensConsulting
      @HavensConsulting  7 місяців тому +1

      Great callout!
      So calculation group logic can be ignored as well, for a tooltip. ALL(CalcGroupTable) in the measure used on the tooltip page.
      Additionally you can have the calculation group ignore certain measures, or focus only on a select number of measures using the SELECTEDMEASURENAME function as well :)
      Two potential solutions for this at least

  • @johansantacruz6464
    @johansantacruz6464 Рік тому

    Great sample! Thanks for it!

  • @ashleytaaffe9423
    @ashleytaaffe9423 3 роки тому

    This is brilliant, really clean

  • @gmartinezm
    @gmartinezm Рік тому +1

    Excent!... I have a question, how do you "fix" the columns in a matrix? for example, you have a Month column for sales, and you display A or B stores, and A only had sales Jan-Jun and B has only Jul-Dec... But you want to display the full year when selecting one or the other one. I know that when you select both, all the Yyear will be displayed, but I want to show all the year as well when A or B are selected only (probably display 0 sales on the months with 0 data)... thoughts? ideas?

  • @rvian4
    @rvian4 2 роки тому +2

    Perfect! I'm just having a lot of trouble to make conditional formatting work with this. It keeps formatting all values from the matrix. Do you have any tips on how to do it? Thanks!

    • @HavensConsulting
      @HavensConsulting  2 роки тому +1

      Unfortunately without looking at the DAX I wouldn't know what the issue might be. Perhaps could you share the PBIX? You can email me at info@havensconsulting.net

    • @rvian4
      @rvian4 2 роки тому +1

      @@HavensConsulting Sure, I'll prepare a test pbix and send to you

  • @tajuddinnoorani8336
    @tajuddinnoorani8336 3 роки тому +1

    It's amazing 👏

  • @laionegan
    @laionegan 6 місяців тому

    Awesome

  • @antoniogarrido3058
    @antoniogarrido3058 3 роки тому

    Cool.. and supernecessary!! 1000 Thanks!!! 👍

  • @terpstry
    @terpstry 3 роки тому

    Great video, very helpful!

  • @andrejaar2136
    @andrejaar2136 3 роки тому

    Another OOB, really nice

  • @juansepowerplatform
    @juansepowerplatform 3 роки тому

    Simply amazing, thank you

  • @ranbirwadhawan6327
    @ranbirwadhawan6327 Рік тому

    This is awesome!! Just wondering how to get the conditional formatting going on certain columns ?? Any Idea

  • @evnpresson7258
    @evnpresson7258 2 роки тому

    This is really great but since this was recorded back in 2021, is there a better way to accomplish this hiding of matrix table columns? Maybe a more efficient way than creating calc groups?

    • @HavensConsulting
      @HavensConsulting  2 роки тому

      It's still the only real way to do it with a native matrix visual. Otherwise custom visuals like InfoRiver do it super easily with a UI that allows you to easily toggle on/off the visibility of any row, column, or group :)

  • @yousefesfahanian2636
    @yousefesfahanian2636 9 місяців тому

    Should i create the calculated groups in the tabular editor or in Power BI?? what is unit here?
    i would appreciate your reply

    • @HavensConsulting
      @HavensConsulting  9 місяців тому

      If you have tabular editor, that's my best spot to make them. Mostly because you can copy/paste the calc items super easily for repeat patterns (MTD, QTD, YTD, etc). Can't do that in Power BI Desktop. But both let you create the same result! Desktop is just a bit slower to make

  • @AnnaBlanchette-ew9fx
    @AnnaBlanchette-ew9fx 8 місяців тому

    @havensconsulting Thank you, but I am totally stuck. I've re-watched so many times and I can't find the part where you show the 'Name' measure. I see the DAX for 'Name Filter' but not name. What DAX code did you use for 'Name'?

    • @HavensConsulting
      @HavensConsulting  8 місяців тому

      Hi Anna, sorry if that got missed! You have access to download any of the PBIX files from my videos by going to my Blog Files page, where you can find all the code there as well :)
      The link to the Blog Files page is in the description of the video. Hope this helps!

  • @harsimranjeetsingh6101
    @harsimranjeetsingh6101 3 роки тому

    I tried same with basic (where each calculated items assigned to its individual measure name only, no switch used) but it's not working, and evaluating matrix with what measure I put in value section only. IS THERE ANY SPECIAL STEPS YOU've USED TO MAKE IT WORK. Also When I remove and add again calculated group column (Name) from matrix in your report it starts showing sales only (i.e. what measure we used in values section). Any ideas why this is happening?

  • @marksulsh1234
    @marksulsh1234 2 роки тому

    Hi if i have a large text field in a Table that shows Several lines of say a telephone correspondence but i was my table to show only the first 50 chars ( so each row is only 1 line) unless i expand it back up to see all text is this possible.

  • @zchase6631
    @zchase6631 2 роки тому

    is there a way to do nested group in calculation group to use in matrix visual? For example, group all related calculation items under one group.

    • @HavensConsulting
      @HavensConsulting  2 роки тому

      Could you provide a grid image or visual concept of this example? Perhaps a mockup in an Excel file? Email us at info@havensconsulting.net

  • @ManaliRay
    @ManaliRay Рік тому

    That is awesome but can you tell me how to implement this hide and show feature for columns. I have columns which are not only numeric values, its have string values as well. Please tell me how to do this?

    • @HavensConsulting
      @HavensConsulting  Рік тому

      Sure, are you referring to the "Hide Column from Report View" feature?

    • @ManaliRay
      @ManaliRay Рік тому

      @@HavensConsulting Yes. I want to hide that columns from matrix visual in the report.

    • @ManaliRay
      @ManaliRay Рік тому

      @@HavensConsulting actually let me clear that out. I have a report that is related to some transactions. Now For different transactions different columns are used. Suppose I have A,B,C,D transaction types. For A, I have columns a,b,d,e. but For B, I have columns a,b,c,f. So for B transaction d and e column value is blank. But I want to show a single report where user will choose transaction type , based on that report will show that transaction table with consecutive columns, that will remove blank columns and will only show the columns which have values.
      so my goal is, user will select B transaction and we will show only a,b,c,f columns so that d and e will be hidden. I think this will help you to undersand. Please help me to resolve this. Thanks for replying by the way.

    • @HavensConsulting
      @HavensConsulting  Рік тому

      @@ManaliRay thanks for the explanation. This is complex enough that I'd need to spend some time with the client and the file to implement this solution. We do offer help desk hours for just these situations. The Power BI community page where you can submit files is another great option as well! www.havensconsulting.net/contact-and-support

  • @ellenbohr3537
    @ellenbohr3537 2 роки тому

    how does the formula need to look like if I only have the Year slicer and not the name slicer?

    • @HavensConsulting
      @HavensConsulting  2 роки тому

      Could you elaborate on your scenario so I can understand it a bit better?

  • @gopikakoranath1201
    @gopikakoranath1201 2 роки тому

    Hi, could you please suggest a way to colour the background for a selected of these columns alone? I am facing issues with conditional formatting with calculation groups. I tried using selectedvalue() to access the calculation item name, but I am not getting the name of calculation item using that. Any ideas on a resolution would be of great help. Thanks.

    • @HavensConsulting
      @HavensConsulting  2 роки тому

      I'll have to take a look at that. But I don't believe I can dynamically conditionally format each individual column with a measure in the current version of Power BI Desktop

  • @ut0rnp
    @ut0rnp 2 роки тому

    great video. but i want to hide column that contain data and only keep one column depending on the value of another parameter. so i want to show a column acvordibg to the value of another column. help

    • @HavensConsulting
      @HavensConsulting  2 роки тому

      Unfortunately, without gathering some additional information about the requirements I don't have enough information to solve this from your initial message. We provide help desk consulting if you're looking to build out the requirements for a report. :) www.havensconsulting.net/contact-and-support

  • @manishkatiyar2403
    @manishkatiyar2403 3 роки тому

    Cool

  • @evnpresson7258
    @evnpresson7258 2 роки тому

    For some reason, I am no longer able to assign a single number to a measure as described in the video and use it as a matrix visual level filter. I know I was able to do it in the past in Power Bi. I'm using the May 2022 release of Power Bi. Can you confirm that this is still possible?

    • @evnpresson7258
      @evnpresson7258 2 роки тому

      It seems its possible to do this on a line chart but not in a matrix visual. Maybe Microsoft changed something with the matrix?

    • @HavensConsulting
      @HavensConsulting  2 роки тому

      Hi Evn, so I have a visual level filter on my name slicer, but there isn't a visual level filter on my matrix table. What part of the video do you see me doing this? I checked the workbook that is available for download from my Blog Files page, and the confirmed no visual level filter that I saw in there on the matrix table, so let me know :)

    • @evnpresson7258
      @evnpresson7258 2 роки тому

      @@HavensConsulting sorry I am doing the filtering directly on my matrix, not in a slicer, my mistake. It turns out that you can't filter by a measure on a matrix if you have a calc group added to the matrix table. You have to remove the calc group, apply the measure filter, and then readd the calc group. Sorry for the confusion!

    • @HavensConsulting
      @HavensConsulting  2 роки тому

      @@evnpresson7258 No worries! Glad you got it figured out as well :)

  • @zchase6631
    @zchase6631 2 роки тому

    how can i filter the calculation items in a matrix visual depending on slicer from a disconnected table? And it doesn't not auto refresh the matrix visual as well.
    SWITCH (
    TRUE (),
    SELECTEDMEASURENAME () = "Name Filter",
    IF (
    ISBLANK ([Mandays Budget]) ||
    SELECTEDVALUE('Display Type'[DisplayMode]) "ManHours"
    , 0, 1 ),
    [Mandays Budget]
    )

    • @HavensConsulting
      @HavensConsulting  2 роки тому

      Hi there, thanks for reaching out! So are you wanting to make a slicer selection from a disconnected table, that then shows or hides calculation group columns in a matrix table?

    • @zchase6631
      @zchase6631 2 роки тому

      @@HavensConsulting yes i am.

    • @HavensConsulting
      @HavensConsulting  2 роки тому

      @@zchase6631 I think I'll need more context from looking at the PBIX file. If you have a workbook I could take a look at sometime over the next few weeks I can see if I can figure out what you need done. You can email me at info@havensconsulting.net

  • @zchase6631
    @zchase6631 2 роки тому

    How to create separator between calculation items in calculation group?

    • @HavensConsulting
      @HavensConsulting  2 роки тому

      Could you elaborate on what you mean by seperator?

    • @zchase6631
      @zchase6631 2 роки тому

      @@HavensConsulting between certain calculation items, i would like to have a empty column display on the matrix.

    • @HavensConsulting
      @HavensConsulting  2 роки тому

      @@zchase6631 if you wanted a "spacer" column between the calc groups then you'd need to create a "blank" calculation inside of the calculation group using Tabular Editor

  • @gowthamipm2350
    @gowthamipm2350 6 місяців тому

    Hi sir,
    Good morning
    This is gowthami
    I have one question related to hide a column (measure ) from table visualization .
    That column I have used for sorting purpose I dnt want to showcase to users in table visualization and also after extraction also
    Plaese can you help me on that,it's very urgent requirement
    Thanks
    Gowthami

    • @HavensConsulting
      @HavensConsulting  6 місяців тому

      Hi there, something like this should help
      ua-cam.com/video/Ch78LbsfsJs/v-deo.html

  • @nayabrasool5752
    @nayabrasool5752 2 роки тому

    Can you please provide that pbix file

    • @HavensConsulting
      @HavensConsulting  2 роки тому

      It's available from our Blog Files page. Link is in the video description, and I'll include it here as well. :)
      www.havensconsulting.net/blog-files

  • @abbyguan1105
    @abbyguan1105 2 роки тому

    you speak too fast, hard to catch

    • @HavensConsulting
      @HavensConsulting  2 роки тому

      Thanks for the feedback. UA-cam has a great speed control feature actually. If you click the gear icon you can slow down the video to more easily follow along. 🙂

  • @ut0rnp
    @ut0rnp 2 роки тому

    the video is too fast

    • @HavensConsulting
      @HavensConsulting  2 роки тому

      UA-cam has a playback speed option that will help if it's too fast for you. Click the gear icon in the lower left, and set the playback speed there.