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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Txtcher
Helper V
Helper V

Need Power Pivot Table in Excel that Counts Rows based on Date Table Filter

Not sure if this is the correct forum to post this, but here it goes:

I have a very, very simple model with the following tables:

- HX 

- MA Apps - has one-to-many relationship with HX:  'MA Apps'[Id] - HX[ParentId]

- Calendar - has a one-to-many relationship with HX[Date] in the HX table. - FYI, I marked it as the Calendar table.

 

Txtcher_0-1747682302280.png

 

In the HX table, I have the following measure:  

Approved:=CALCULATE(
    Min(HX[HXDate]),HX[NewValue] = "Approved")

I want to create a pivot table that counts the number of MA Apps ([Id]) approved based on a slicer from Calendar. 

In the Power BI report  I used this measure to get the row count for MA Apps and it works great:

MA Apps Approved:=COUNTROWS(
	SUMMARIZE(
		FILTER('MA Apps', [Approved]),
	'MA Apps'[Id])
)

But this measure does not work in Excel's power pivot. The data blanks out and it tells me relationships between tables may be needed.

Row Context, Filter Context, Context Transition....gah! I've watched videos, googled, read posts, but can't figure out how to make this work in Excel's power pivot. 

Can someone put me out of my misery?

Thanks in advance.

1 ACCEPTED SOLUTION
jxmb
New Member

check the direction between MA Apps and HX table, Calendar table can`t filter MA Apps for the many to one relation between MA Apps and HX.

View solution in original post

3 REPLIES 3
v-ssriganesh
Community Support
Community Support

Hi @Txtcher,
Thank you for reaching out to the Microsoft fabric community forum. 

It looks like your issue is related to an Excel query, and for the best possible support on this, I would recommend posting your query in the Excel Community. The community there is specifically focused on Excel related issues, and you'll likely get the most accurate solution for your needs.

You can find the Excel Community here: Microsoft Excel Community

Just to clarify, the Microsoft Fabric Community focuses on issues related to Power BI and Microsoft Fabric, so the Excel Community will be the best place for your specific query.

If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.

 

Thank you for using Microsoft Community Forum.

jxmb
New Member

check the direction between MA Apps and HX table, Calendar table can`t filter MA Apps for the many to one relation between MA Apps and HX.

Hello,

Thank you for the reminder to check the relationship. The direction was correct, but I had selected the wrong field! It is mistakes like this one that really make you think you are losing your mind. Especially when you are new and learning.

Thanks again. Problem solved.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors