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

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.

Reply
haadvitha
New Member

row level calculations count not being populated properly

Screenshot 2025-09-23 at 10.52.11 PM.png

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

Please try to create DAX measure instead of using implicit measures.

 

Jihwan_Kim_1-1758684699493.png

 

 

Jihwan_Kim_0-1758684685030.png

 

Count Code1: = 
COUNTROWS (
    SUMMARIZE (
        FILTER ( ALL ( Table2 ), Table2[name] = SELECTEDVALUE ( Table2[name] ) ),
        Table1[variety]
    )
)

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

4 REPLIES 4
v-kpoloju-msft
Community Support
Community Support

Hi @haadvitha,

Thank you for reaching out to the Microsoft Fabric Community Forum. Also, thanks to @Jihwan_Kim, for his valuable inputs on this thread.

Could you please share the sample data relevant to this thread, along with the expected outcome? This will help us accurately reproduce the scenario and provide you with the .pbix file. Alternatively, if you have a sample .pbix file, please share the link with us.

Thank you for using the Microsoft Fabric Community Forum.

Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

Please try to create DAX measure instead of using implicit measures.

 

Jihwan_Kim_1-1758684699493.png

 

 

Jihwan_Kim_0-1758684685030.png

 

Count Code1: = 
COUNTROWS (
    SUMMARIZE (
        FILTER ( ALL ( Table2 ), Table2[name] = SELECTEDVALUE ( Table2[name] ) ),
        Table1[variety]
    )
)

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

i am getting error saying variety specified in the summarize function was not found in the input table, because in my original data set, i had many - many relation ship between these tables.

please provide your sample pbix file's link, and then I can try to look into it.

Thank you.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.