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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Calculate measure with two paramaters

Hi I'm looking to calculte hours based on date and below 333

 

Integration Bill = CALCULATE([Integration Hours], FILTER(DATESBETWEEN('Work Period'[Date], DATE(2022,11,1), DATE(2022,12,31)) && [Integration Hours]<333))
1 ACCEPTED SOLUTION
HoangHugo
Solution Specialist
Solution Specialist

Hi, you should use comma (,) between parameters, try this one

Integration Bill = CALCULATE(SUM([Integration Hours]), DATESBETWEEN('Work Period'[Date], DATE(2022,11,1), DATE(2022,12,31), [Integration Hours]<333)

View solution in original post

3 REPLIES 3
v-jianboli-msft
Community Support
Community Support

Hi @Anonymous ,

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or if you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

 

Refer to:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

 

Best Regards,

Jianbo Li

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

Ashish_Mathur
Super User
Super User

Hi,

Ensure that you create a Calendar Table with a relationship (Many to One and Single) from the Date column of the Work priod table to the Date column of the Calendar Table.  Write this measure

Integration Bill = CALCULATE([Integration Hours],filter(DATESBETWEEN(Calendar[Date],DATE(2022,11,1), DATE(2022,12,31)),[Integration Hours]<333))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
HoangHugo
Solution Specialist
Solution Specialist

Hi, you should use comma (,) between parameters, try this one

Integration Bill = CALCULATE(SUM([Integration Hours]), DATESBETWEEN('Work Period'[Date], DATE(2022,11,1), DATE(2022,12,31), [Integration Hours]<333)

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