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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Improving performance of measure with multiple filter conditions

Hello everyone!

So, I have the following measure:

 

V.Received =
var same_day = FILTER(Table,YEAR(Table[LT_opened_at])&MONTH(Table[LT_opened_at])&DAY(Table[LT_opened_at])=YEAR(Table[qu_date])&MONTH(Table[qu_date])&DAY(Table[qu_date]))

return
CALCULATE(count(Table[hrc_number]),same_day)))

 

I also used the logic of "&&" logic to compare year, month and day but is slow as well.

My table has like 8M rows, it takes a long time to load when this measure is inside.
My table has date as rows, and this measure Bbasically its checking the number of rows where the lt_opened_at day matches the qu_date day that is being used in the table as row.

Any better idea on how to make such a measure?

Thank you!

4 REPLIES 4
Vvelarde
Community Champion
Community Champion

@Anonymous

 

 

Hi, Do you have a table like this?

 

Table.png

 

And you want to compare Row by Row If OpenedDate is equal to Qu_date?

 

Regards

Victor




Lima - Peru
Anonymous
Not applicable

Hello,

Yes, the qu_date will be used in the table row by row with the measure I mentioned.

Best Regards

@Anonymous

 

Hi, try with:

 

Measure =
CALCULATE (
    COUNT ( Table1[HRCNumber] );
    FILTER ( Table1; Table1[OpenedDate] = Table1[Qu_Date] )
)

Regards

 

Victor




Lima - Peru
Anonymous
Not applicable

I am trying to avoid that, cause I will need to change the data type on the database side and I need it for some calculations.. (knowing the time).  That is why I was doing this workout, but I think I do not have any other choice, maybe making two columns where one I just delete the extra details and make as you said

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors