Forum Discussion

Ki2024's avatar
Ki2024
Regular Visitor
1 year ago
Solved

Merging table visuals with different filters for each row

Hi

I'm new to Power Bi and wondered if there was a way to combine multiple table visuals into a single tabulation. Each of my current table visuals have different filters. I have about 20 filtered tables that I want to combine in one overall tabulation.
Currently have: 

Table 1 Unknown DoB

People
45

 

Table 2 Unknown postcode

People
56

 And I would like the following table:

QueryPeople
Unknown DoB45
Unknown Postcode56

Thanks!

  • OK.
    so here what you can do. Hope you already have different measures for those values. If not then create like below

    Unknown DoB Measure = calculate(count(table, person ID), DoB=blank())

    Unknown Postcode Measure = calculate(count(table, person ID), post code=blank())
    and so on.

    Now you need to create a table named Query from Tab>enter data, put column name as Query and then enter all those caregories like "Unknown DoB","Unknown Postcode" ...... in that column and then load.

     

    finally create a measure to switch
    tabular values measure=

    switch(true(),

    max(Query,Query)="Unknown DoB", Unknown DoB Measure,

    max(Query,Query)="Unknown Postcode",Unknown Postcode Measure)

    now create matrix , put the Query column in the row and the tabular values measure in the value pane. you will get the  desired output.

     

     

5 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Ki2024 

    Did the solution Rupak_bi  offered help you solve the problem. if it helps, you can consider to accept it as a solution so that more user can refer to, or if you also have some problems you can offer some information here so that can provide more suggestion for you.

     

    Best Regards!

    Yolo Zhu

     

     

  • Hi Ki2024 

    you can do it by creating new field parameters but there may be some easy wayout.

    please share your dataset structure with sample data. 

  • Ki2024's avatar
    Ki2024
    Regular Visitor

    It is a single data table eg:

    Person IDDoBPostcode
    1

    1.1.23

    HD23
    2 HG3
    31.2.23SJ4
    45.6.23 
    5 HS4
    65.4.25BH3
    7 SE4
    8 DO8
    95.8.14

     

    This is basic example of the table visualisations, some of my table visualisations have filters from multiple columns.

    Thanks 🙂

  • OK.
    so here what you can do. Hope you already have different measures for those values. If not then create like below

    Unknown DoB Measure = calculate(count(table, person ID), DoB=blank())

    Unknown Postcode Measure = calculate(count(table, person ID), post code=blank())
    and so on.

    Now you need to create a table named Query from Tab>enter data, put column name as Query and then enter all those caregories like "Unknown DoB","Unknown Postcode" ...... in that column and then load.

     

    finally create a measure to switch
    tabular values measure=

    switch(true(),

    max(Query,Query)="Unknown DoB", Unknown DoB Measure,

    max(Query,Query)="Unknown Postcode",Unknown Postcode Measure)

    now create matrix , put the Query column in the row and the tabular values measure in the value pane. you will get the  desired output.

     

     

    • Ki2024's avatar
      Ki2024
      Regular Visitor

      Thanks so much. I'll try it out 🙂