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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.