Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Grouping and Fixed value extraction

Hi 

I am trying to migrate Tableau dashboard in to Power Bi. Please help me with below requests 

1. Not able to get auto grouping in table -  when I try to drag the items to table object they are not grouping automatically, I try with Matrix visualization as well but it is appearing as section not the grouping. Is there any settings I am missing here below is the screen shot for the same. 

2. Adding to this I am trying to get maximum Ebill id for subscriber using Max and Allexcept to get maximum of ebill id for each subscriber (used LOD Fixed in tableau). The e  xpression is valid but of no grouping it is returing same value for allcolumns. below is the screen shot for same.

3. Different date formatting in different visuals - I have many bar charts showing trends based on months but of different formats. One bar chart I display month axis as MMMYYYY(Jan 2019, Feb 2019) and in another chart I show as (January 2019, February 2019) and in another chart I show as (Jan 19, Feb 19) and in another (2019 Jan, 2019 Feb). I see these are very basic in Tableau where as I am finding difficulty in Power BI please help me with the workarounds.  

 

Sincerely - Krishna

 
 
  • Hi Anonymous ,

    On question 1, you are refering to a screenshot but it seems to be missing. What you are describing you are expecting should be default behaviour for power bi.

    Test table with two category columns and a value columnStandard table visual with columns added, nothing else was done and it autogrouped as expected

    On question 2: you are again missing the screenshots. However, by the looks of it you should wrap this in a calculate statement like this (Measure):

    =CALCULATE( MAX ( Table[Ebill] ),  ALLEXCEPT( Table, Table[Subscriber]))

    Applying this logic to the test set above and adding the measure to the table results in this:

    On your third question, it is not possible to change the date format per visual if you want to use the same column. You set the format on a column level, not tied to a visual. However, you can copy the column and assign it a different format. Or, if using a dim_date table, you add the formats you require to the date table (preferred option). You can change the formatting by selecting the column in the Fields pane on the right of you screen, and then go to the Modelling tab on the top: 

     

    Let me know if this answers your questions and have a great new year! 🙂

     

    Kind regards

    Djerro123

    -------------------------------

    If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.

    Keep those thumbs up coming! 🙂

     

5 Replies

  • JarroVGIT's avatar
    JarroVGIT
    Resident Rockstar

    Hi Anonymous ,

    On question 1, you are refering to a screenshot but it seems to be missing. What you are describing you are expecting should be default behaviour for power bi.

    Test table with two category columns and a value columnStandard table visual with columns added, nothing else was done and it autogrouped as expected

    On question 2: you are again missing the screenshots. However, by the looks of it you should wrap this in a calculate statement like this (Measure):

    =CALCULATE( MAX ( Table[Ebill] ),  ALLEXCEPT( Table, Table[Subscriber]))

    Applying this logic to the test set above and adding the measure to the table results in this:

    On your third question, it is not possible to change the date format per visual if you want to use the same column. You set the format on a column level, not tied to a visual. However, you can copy the column and assign it a different format. Or, if using a dim_date table, you add the formats you require to the date table (preferred option). You can change the formatting by selecting the column in the Fields pane on the right of you screen, and then go to the Modelling tab on the top: 

     

    Let me know if this answers your questions and have a great new year! 🙂

     

    Kind regards

    Djerro123

    -------------------------------

    If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.

    Keep those thumbs up coming! 🙂

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      apologies, did not realize the attachment is not through. Can please guide me how to attach the screen captures I did not see the attachment option. I try to type in the values , requesting please consider first two columns for question 1 and third column for question 2. 

       
      Power Bi SeparationTableau 
      SubscriberBill IDMax Bill ID for SubscriberSubscriberBill IDMax Bill ID for Subscriber
      54064650938988948399389889483995406465093898894839938988948404
      54064650938988948400389889484003898894840038988948404
      54064650938988948401389889484013898894840138988948404
      54064650938988948402389889484023898894840238988948404
      54064650938988948403389889484033898894840338988948404
      54064650938988948404389889484043898894840438988948404
      540646510-2-2540646510-2-2
      540646511-2-2540646511-2-2
      54064651238988948405389889484055406465123898894840538988948407
      54064651238988948406389889484063898894840638988948407
      54064651238988948407389889484073898894840738988948407

       

      where both Subscriber and Ebill ID are defined as numbers.

       

      Sicerely - Krishna 

      • v-frfei-msft's avatar
        v-frfei-msft
        Community Support

        Hi Anonymous ,

         

        We can create a measure as below to work on it.

        Max Bill ID for Subscriber = 
        VAR a =
            MAX ( 'Table'[Bill ID] )
        VAR b =
            CALCULATE (
                MAX ( 'Table'[Bill ID] ),
                ALLEXCEPT ( 'Table', 'Table'[Subscriber] )
            )
        RETURN
            IF ( a = b, b, BLANK () )
        

         

    • Anonymous's avatar
      Anonymous
      Not applicable

      I try to tweek the condition adding join table name and it is working as expected now. Really appreciate for the logic shared. I am still struggling on grouping, table still showing all the rows rather grouping but the main LOD conversion is working. Appreciate for the help. 

       

      Sincerely - Krishna