Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi Experts
I have two tables A and B, in table A i have unique instance of the Client Names and in table B i have multiple instance of the Client names and Multiple intance of True or False in Column "ABC" for each client...
I want to return the count of the True values for each client name.
I have created a one to many relationship between the two tables on the client name..
Measure = CALCULATE ( COUNTROWS ( TableB ), TableB[ABC] = "true" as its text
how do i filter fo include only enters for the year 2014 in Table B column "YearC"
Solved! Go to Solution.
Two ways to do this.
Measure For 2014 = CALCULATE ( COUNTROWS ( TableB ), TableB[ABC] = "true", TableB[YearC]=2014)
(Static approach)
I prefer the first one.
Measure = CALCULATE ( COUNTROWS ( TableB ), TableB[ABC] = "true", TableB[YearC] = 2014 )
It may be better to include the year as a filter in the report, so you won't need to create a measure for each year.
@sokg: sorry, I posted before seeing your answer, it's the same as mine
Apologies all it was my fault corrected works fine..thanks
Two ways to do this.
Measure For 2014 = CALCULATE ( COUNTROWS ( TableB ), TableB[ABC] = "true", TableB[YearC]=2014)
(Static approach)
I prefer the first one.
hi Sokg
Thanks for the feedback, I am getting an error message i did try the same DAX fucntion. "the expression refers to mulitple columns, Mulitple columns cannot be converted to a scalar value.
What about first approach??
Can you provide data from TableB (all columns)???
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.