Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
HumanX
Frequent Visitor

Slicer for Per Day and Consumer on 2 different Tables

Hi, 

I'm new to power bi and want to ask help with slicer using 2 tables

Consumer Goods Table

Consumerday1day 2 day 3
Consumer 1123
Consumer 2245


Consumer Sales Table

Consumerday1day 2 day 3
Consumer 12222223
Consumer 2224455


now i want to have 2 slicer and 2 cards: date and Consumer so i can display the result on 2 cards containing Sales and goods average. (per day average or individual data of consumer)

Note:
Currently i have 4 slicer which is 2 for goods table and 2 slicer for sales table, i just want to combine and if possible there will be 2 slicer since they have same column and consumer.

Any idea will help. Thanks!

4 REPLIES 4
Fowmy
Super User
Super User

@HumanX 

FIrstly, you need unpivot your data to have three columns for each table as Consumer, Goods , Date and Consumer, Sales and Date. Then the rest will be easy for to do the calcualtion.

Follow these videos if you need to know how to unpivot: 
https://www.youtube.com/watch?v=Vff2kRBM95o&pp=ygUJZXhjZWxmb3J0

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

HumanX
Frequent Visitor

Hi,

Yes I already did that and for my 3rd table I used this 

My TBL =
    UNION(
        SUMMARIZE(
          Consumer Goods Table,
            Consumer Goods Table[Consumer],
            Consumer Goods Table[Count per day]
        ),  
        SUMMARIZE(
            Consumer SalesTable,
             Consumer SalesTable[Consumer],
            Consumer SalesTable[Count per day]
        )

    )

now when I created a measure inside MY TBL
Average Goods = AVERAGE(Consumer Goods Table[Values])

Average Sales= AVERAGE(Consumer SalesTable[Values])

and i put it on my card, it shows wrong computation as I don't know how its been computed since i just want to average values per day of all the consumer. Thank you in advance! 

@HumanX 

Not clear, sorry.

Please share your PBI file, I hope it contains dummy data. 
Save it in Google Drive and share the link here and ensure access is given

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.