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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sea
Frequent Visitor

the year filter doesn't work

Hello,

 

I have these tables, the tables are demo:
Screenshot_1.png

 

InPower BI I have the following structure:

Screenshot_2.png

Year Slicer has the date filed from the table activities

User Id Slicer has the id_user field from the table user

For the total target Card I wrote the following measure:

total target =
(VALUES('table target activities'[taget activities])*VALUES('table target activities'[weeks worked this year]))+
(VALUES('table target activities'[taget activities])*VALUES('table target activities'[weeks worked last year]))+
(VALUES('table target activities'[taget activities])*VALUES('table target activities'[weeks worked over the past two years]))

Card total activities has the count id_user field from the table activities

For the total deficit Card I wrote the following measure:

[target total] - COUNT ("table target activities" [id_user])

 

If a change id_user it works, when I select a single year, only Total activities work correctly, the rest remains unchanged.
How can I make all the Cards work correctly when choosing the years?

 

Thank you!

3 REPLIES 3
javi0unavailabl
Resolver II
Resolver II

You need to change the relationship from single direction for both

 

Go to Relationship tab -> double click on relation and set the direction of relationship in both

 

Regards

Not work, because when I choose:

id_user -> 30 and year 2018, total target does not change depending on the selected year.

Total target for 2018 for id_user 30 is 60 not 1100

Hi @sea,

If there are relationships between  table 'activities' and table 'target activities', table 'user' and 'target activities'? And please confirm the two slicers affect the card by Edit interactions under format. 

Best Regards,
Angelia

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.