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

A problem of interaction

Hello community,

 

I need your help

 

I have two table one is user the other is date

I have two relationships one is active between date_contract_end and actual_date(date table)

and inactive relationship date_contract_start and actual_date(date table)

 

I create a clustred column chart and a table to know the name of new and exit users

for the clustred column chart I select count(user_id) for the exit entry number and create a measure calculate(count(user_id),userelationship( date_contract_start,actual_date(date table)))

 

The problem is when selecting the exit entry column it shows me the name of users but when selecting the new entry number it shows me the same name of exit entry

 

here is some screenshots to clear more the situation

 

1.JPG

2.JPG

 

3.JPG

When selecting the exit number it shows me correctly the names:

4.jpg

 

5.JPG

But when selecting the new entry it shows me the name of exit entry, there is no interaction

6.jpg8.JPG

 

Thanks in advance

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Anonymous ,

 

What I did was to create an unrelated table with the values start and end then created the following measure:

 

 

Chart Values = 
SWITCH (
    TRUE ();
    SELECTEDVALUE ( 'Measure_Selection'[Measure] ) = "Start"; [Entry];
    SELECTEDVALUE ( 'Measure_Selection'[Measure] ) = "End";
        CALCULATE (
            DISTINCTCOUNT ( USERS[user_id] );
            FILTER ( USERS; USERS[date_fin_ctrt] <> BLANK () )
        );
    DISTINCTCOUNT ( USERS[user_id] )
)

 

Now just make your chart with following strucure:

  • Axis - Calendar[Month]
  • Legend: Measure_Selection[Measure]
  • Column Values: [Chart Values]

Then add the [Cart Values] to the table visualization and hide it.

 

Check PBIX file attach.

 

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @Anonymous ,

 

What I did was to create an unrelated table with the values start and end then created the following measure:

 

 

Chart Values = 
SWITCH (
    TRUE ();
    SELECTEDVALUE ( 'Measure_Selection'[Measure] ) = "Start"; [Entry];
    SELECTEDVALUE ( 'Measure_Selection'[Measure] ) = "End";
        CALCULATE (
            DISTINCTCOUNT ( USERS[user_id] );
            FILTER ( USERS; USERS[date_fin_ctrt] <> BLANK () )
        );
    DISTINCTCOUNT ( USERS[user_id] )
)

 

Now just make your chart with following strucure:

  • Axis - Calendar[Month]
  • Legend: Measure_Selection[Measure]
  • Column Values: [Chart Values]

Then add the [Cart Values] to the table visualization and hide it.

 

Check PBIX file attach.

 

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

Thank you so much 🙂

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.