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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
joshua1990
Post Prodigy
Post Prodigy

Countrows regardless of date filter and relationship

Hello everyone!

I have 3 tables that are linked with a date key or an item key.

The structure is like:

ItemMaster

Item (key)DescriptionValue
1Keys5
2Tube10

 

tblOrderState

Item (key)OrderStateDate (key)
1A25001.01.2020
1A39501.02.2020

 

the tblOrderState is linked with the calendar table.

On the page is a filter for the whole page for the current week.

Now I need to determine the number of orders that have the "50" regardless of the date.

How would you do that?

3 REPLIES 3
AntrikshSharma
Community Champion
Community Champion

Can you show how you are slicing your data? you could try

Measure =
CALCULATE (
    COUNTROWS ( tblOrderState ),
    FILTER ( ALL ( tblOrderState[OrderState] ), tblOrderState[OrderState] = 50 )
)

 

Thanks for your reply!

It is not working since I am using a filter for the week on the whole page.

Filter on this page: week

 

How can I cut the active date relationship? 

The following measure counts the orders regardless the date relationship:

COUNTX(FILTER(ALL(),tblOrder[Status]=16),tblOrder[Order Number])
 
But it also disables the item master relationship.
How can I solve that?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors