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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Murkow
Frequent Visitor

Calculated column based on formula, filter and date - using slicer

Hello everybody,

I'd like to ask you for help with a calculated column.

I'll use the following table to demostrate it on an example

 

powerBI.jpg

 

In order to get the Requested column I use this formula:

Requested =
CALCULATE (
SUM (Query1[hours] );
FILTER (
ALLEXCEPT ( Query1; Query1[User] );
Query1[project_category] <> "_Attendance"
)
)

 

It works, however, when I use the slicer for the visualization, the date slicer doesn't have any influence in my new column and it still returns only one (the total) value.

Is there anything I can do about that? Any formula taht cooperates with the date and will return a value only for the time period I filter using the slicer?

Thanks in advance

 

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Murkow,

 

Please try below measure:

requested =
CALCULATE (
    SUM ( Query1[Hours] ),
    ALLSELECTED ( Query1[Spent_on] ),
    ALLSELECTED ( Query1[Project category] ),
    Query1[project category] <> "_Attendance"
)

1.PNG2.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Murkow,

 

Please try below measure:

requested =
CALCULATE (
    SUM ( Query1[Hours] ),
    ALLSELECTED ( Query1[Spent_on] ),
    ALLSELECTED ( Query1[Project category] ),
    Query1[project category] <> "_Attendance"
)

1.PNG2.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Yuliana,

great help, thank you!

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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