Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

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

7 Replies

  • ChandeepChhabra's avatar
    ChandeepChhabra
    Impactful Individual

    Anonymous 

     

    Create a simple measure

     

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

    And drag this visual into your table

     

    • Anonymous's avatar
      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's avatar
      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