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
kari1282
Helper III
Helper III

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 @kari1282 ,

 

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
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.