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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Filter rows to adjacent column month

The following measure works fine when my matrix has 'Calendar'[Date Hierarchy] in the columns and 'sales'[Order Date] in the rows.  However, when I try to rever to the desired layout of 'Calendar'[Date Hierarchy] in the columns, and "Division" in the rows, the measure returns no values.

 

How can I return the same values from the first screenshot, but not have it be dependent on [Order Date] remaining in the matrix?

 

 

CountCompleteEstimate = 
CALCULATE(
    DISTINCTCOUNT(SalesHistory[SO]),
    FILTER(SalesHistory,SalesHistory[EstimateQuality]="Complete Estimate"),
    FILTER('Calendar','Calendar'[MonthInt]=SELECTEDVALUE(Sales[OrderDateMonthInt])
    &&'Calendar'[Year]=SELECTEDVALUE(Sales[OrderDateYear])
    )
)

 

 

Capture.PNGCapture2.PNG

Thanks in advance!

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

Please update the formula of measure [CountCompleteEstimate] as below and check whether the matrix can display the data or not:

CountCompleteEstimate =
CALCULATE (
    DISTINCTCOUNT ( 'SalesHistory'[SO] ),
    FILTER ( 'SalesHistory', 'SalesHistory'[EstimateQuality] = "Complete Estimate" )
)

If the above one is not working, please share some sample data in SalesHistory, SalesCalendar table and your expected result with backend logic and special examples (exclude sensitive data) in order to provide you a suitable solution? Please also share the related relationship info(cardinality, direction etc.) if there is any relationship exist in these tables. Thank you.

Best Regards

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors
Top Kudoed Authors