Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I have currently 2 tables as follows
Table 1 (Multiple Side filter apply to get the measure value)
Year | Resource | Measure Value |
2024 | A | 1 |
2024 | B | 2 |
2024 | C | 0 |
2024 | D | 0 |
2024 | E | 3 |
2024 | F | 2 |
Table 2 (Same Multiple Side will be apply to get the measure (Countif) value)
Value (Static Value from 0 - 10m Measure value in table 1 will only be 0 - 10) | Measure (Countif) |
0 | 2 |
1 | 1 |
2 | 2 |
3 | 1 |
How can I get the measure (Countif) based on the Resource count.
Thanks
Solved! Go to Solution.
The measure is not returning anything. i am actually having a complex measure that doesnt reside inside Table 1, so i need to use calculatetable to store the Resource and Measure within the same object before countx.
hello @Roy_tap
please check if this accomodate your need.
since you are mentioned about measure, i assumed you want to do this in measure form.
1. create a new measure with following DAX
Measure Countif =
var _Value = SELECTEDVALUE('Table 2'[Column1])
Return
COUNTX(
FILTER(
'Table 1',
'Table 1'[Measure Value]=_Value
),
'Table 1'[Measure Value]
)
The measure is not returning anything. i am actually having a complex measure that doesnt reside inside Table 1, so i need to use calculatetable to store the Resource and Measure within the same object before countx.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
13 | |
12 | |
11 | |
11 | |
8 |