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
Anonymous
Not applicable

Calculation help

i have two tables T1 and T2 as shown below.   I want to calculate number of messgaeid's  sent and received seperately. The report will have a slicer for  'Userid',  and 'date'.

For example....So when i select   'userid' = 1 and  'date'  = 5/1/2019.  i need to show two visuals

 

 sender(userid)           count of messaged                                   receiver(userid)     count of messageid

 1                                              2                                                        1                                   0

 

 

T1

userid
1
2
3
4
5

 

T2

 

datesender(userid)receiver(userid)messageid
5/1/2019132j2i
5/1/201914uiiiu
5/2/201912hkj
5/2/201923fdf
5/2/201931fffgggf
5/2/201942dfdf
5/3/201953fdfdf
5/3/201952ddff
5/4/201945dfdf
5/4/201913dfdf
5/5/201932dddg
5/5/201925jijlk
1 ACCEPTED SOLUTION

@Anonymous 

 

1 single slicer for userid filter data for both (Receiver and Sender). Have a look at this updated pbix.

 

This allows multiple userid selection. 

 

https://drive.google.com/open?id=1aRkM0ENAJaFcVIO2dBfeSBnsoIJsgej_

 

Hope this helps !!

View solution in original post

7 REPLIES 7
JIGAR
Resolver IV
Resolver IV

@Anonymous 

 

Please see this pbix for the solution. 

 

https://drive.google.com/open?id=1aRkM0ENAJaFcVIO2dBfeSBnsoIJsgej_

 

Hope this helps!!

Anonymous
Not applicable

@JIGAR  it is working..but if iwant to show all users in bar chart...with count of messages,, ..how can i do that?

if i select multiple users its not working

ChandeepChhabra
Impactful Individual
Impactful Individual

@Anonymous 

 

Create a simple measure

 

count of messaged = COUNTA(YourTableName[count of messaged])

And drag this visual into your table

 

Anonymous
Not applicable

i need to have only one slicer for userid and date..and that should filter both   sending and receiving messages for userid...

 

 

slicer1 = 'userid'   slicer2 = 'date'

userid on y axis   and  count of messgaes (received)

userid on y axis   and  count of messgaes (sent)

@Anonymous 

 

1 single slicer for userid filter data for both (Receiver and Sender). Have a look at this updated pbix.

 

This allows multiple userid selection. 

 

https://drive.google.com/open?id=1aRkM0ENAJaFcVIO2dBfeSBnsoIJsgej_

 

Hope this helps !!

Anonymous
Not applicable

@JIGAR  awesome..its working. thanks a lot...one question...i dont see any relationship between tables..and it is working fine. ..dont we need any relationship?

@Anonymous 

 

Not really in this scenario.

 

But you might need a relationship between tables for a different scenario.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.