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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
adealboran777
Frequent Visitor

Date and Two Table

Hi!

 

Let's see if somebody knows how to do this.

 

I have two tables:

 

  1. The first one records several interactions with an app, which can be of Type A or B, during a period of time.
    1. Date.
    2. InteractionID.
    3. UserID
    4. Interaction --> A or B.
  2. The second one has a list of users with the following fields:
    1. UserID.
    2. Centercost --> 1 or 2.

My objective is to get a chart with an X-axis showing the number of interactions type A achieved (up to 😎 and a Y-axis showing the number of UserID that achieved such number of interactions type A. Also, it needs to be filtered by the variable Date (time).

 

So, I need something that counts the number of interactions per user and afterwards something that counts the number of users with a given number of interacions.

 

How would you do it? I have tried different approaches but I am not able to do it. For instance, I have tried to count the number of interacions type A done using a new column on the second table, but it doesn't take into account the Date when using a filter. 

 

Thanks in advance!

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

So this is going to basically look like:

 

Interactions Measure = 
COUNTROWS(FILTER('InteractionsTable',[Interaction]="A"))


Users Above Threshold Measure = 
COUNTROWS(
    FILTER(
        SUMMARIZE('UserTable',[UserID],"__Interactions",[Interactions Measure]),
        [__Interactions] >= 5
    )
)

For users with 5 or more interactions.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

So this is going to basically look like:

 

Interactions Measure = 
COUNTROWS(FILTER('InteractionsTable',[Interaction]="A"))


Users Above Threshold Measure = 
COUNTROWS(
    FILTER(
        SUMMARIZE('UserTable',[UserID],"__Interactions",[Interactions Measure]),
        [__Interactions] >= 5
    )
)

For users with 5 or more interactions.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thank you!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors