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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Effimero89
Regular Visitor

Ignoring Date filters in a measure

Capture.PNG

Table 1 (left) is Filtered by "Invoice Date"

Table 2 (right) is Filtered by "Book Date"

 

I need the record count (a measure) of Table 2 to show up in Table 1 WITHOUT interfereing with the "Total Fare Currency" value of Table 1

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Effimero89 ,

If you mean for the Invoice Date slicer, set the interaction to none in the Table2, and the same for Book Date.

vkalyjmsft_0-1661244758496.png

Then you want the Record Count in Table1 show the value same with in Table2. I don't think it's possible, because for Table1, it can use the REMOVEFILTERS function to remove the Invoice Date slicer, but as the Book Date slicer can't interactive with Table1, all columns or measures in Table1 "don't know" what is selected in the Book Date slicer, then it can't show the same value as Record Count in Table2 which is filtered by Book Date.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yanjiang-msft
Community Support
Community Support

Hi @Effimero89 ,

Is your problem solved? If so, would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirment will find the solution quickly and benefit here, thank you!

Best Regards,
Community Support Team _ kalyj

v-yanjiang-msft
Community Support
Community Support

Hi @Effimero89 ,

If you mean for the Invoice Date slicer, set the interaction to none in the Table2, and the same for Book Date.

vkalyjmsft_0-1661244758496.png

Then you want the Record Count in Table1 show the value same with in Table2. I don't think it's possible, because for Table1, it can use the REMOVEFILTERS function to remove the Invoice Date slicer, but as the Book Date slicer can't interactive with Table1, all columns or measures in Table1 "don't know" what is selected in the Book Date slicer, then it can't show the same value as Record Count in Table2 which is filtered by Book Date.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Jeanxyz
Post Prodigy
Post Prodigy

Not quite sure what you need. try something like this

 

Record Count(M)=calculate(countrows(table_records),all(Dim_Invoice Date), all(dim_fare currency))

tamerj1
Super User
Super User

Hi @Effimero89 
I think you should have a date table that have relationships connected to both date columns in your fact table. One of them will have to inactive. This way you can easily activate a deactivate any of these relationships whenever you want. However, it seems you are connecting eas table to only one of the two slicers which makes it almost impossible. The following has limited chances to work but you may try it

Record Count New =
IF (
    SELECTEDVALUE ( TableName[Country Name] = "Angula" ),
    CALCULATE (
        [Recors Count],
        REMOVEFILTERS ( TableName[Invoice Date] ),
        VALUES ( TableName[Book Date] )
    ),
    [Recors Count]
)

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.