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.
i have given input as shown in excel sheet where for each title , name and its actual date and target date.
sheet2 create to for target.
i have create dateset that gives week number for year 2022 to 2023
created column:
Solved! Go to Solution.
Hi @Jameel ,
I created a sample pbix file(see the attachment), please check if that is what you want.
1. Create a name dimension table as below
Names = VALUES('Actual'[Name])
2. Create two measures as below to get the count of [Actual] and [Target]
Count of actual =
CALCULATE (
COUNT ( 'Actual'[Actual] ),
FILTER ( 'Actual', 'Actual'[Name] IN ALLSELECTED ( 'Names'[Name] ) )
)
Count of target =
CALCULATE (
COUNT ( 'Sheet2'[Target] ),
FILTER ( 'Sheet2', 'Sheet2'[Name] IN ALLSELECTED ( 'Names'[Name] ) )
)
Best Regards
Hi @Jameel ,
I created a sample pbix file(see the attachment), please check if that is what you want.
1. Create a name dimension table as below
Names = VALUES('Actual'[Name])
2. Create two measures as below to get the count of [Actual] and [Target]
Count of actual =
CALCULATE (
COUNT ( 'Actual'[Actual] ),
FILTER ( 'Actual', 'Actual'[Name] IN ALLSELECTED ( 'Names'[Name] ) )
)
Count of target =
CALCULATE (
COUNT ( 'Sheet2'[Target] ),
FILTER ( 'Sheet2', 'Sheet2'[Name] IN ALLSELECTED ( 'Names'[Name] ) )
)
Best Regards
Its working. Thanks
but interaction for other visuals that i created are not working when selecting the names. I tried creating manage relationships between names and names in target sheet . But it is showing incorrect results
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
43 | |
21 | |
20 | |
15 | |
13 |
User | Count |
---|---|
45 | |
41 | |
39 | |
19 | |
19 |