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
liran
Frequent Visitor

values function with filter

hi,

i have  this measure:

 

SUMX (
VALUES ( TimeTable[Times_DimTime_By_WeeksWeek] ),
[ValidObservationWeek]
)

 

and i want it to sum only when the period is equal to the period in my filter

i tried using allexcept but i didnt succeed

any suggestions?

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@liran

 

May be something like this ....Not sure

 

Measure =
SUMX (
    FILTER (
        TimeTable,
        TimeTable[Times_DimTime_By_WeeksWeek] = SELECTEDVALUE ( MyfilterTable[Column] )
    ),
    [ValidObservationWeek]
)

View solution in original post

4 REPLIES 4
Zubair_Muhammad
Community Champion
Community Champion

@liran

 

May be something like this ....Not sure

 

Measure =
SUMX (
    FILTER (
        TimeTable,
        TimeTable[Times_DimTime_By_WeeksWeek] = SELECTEDVALUE ( MyfilterTable[Column] )
    ),
    [ValidObservationWeek]
)

it says that  'SELECTEDVALUE'. It is not a valid table, variable, or function name.

 

i'm using excel 2016, maybe this version doesnt support the SELECTEDVALUE function?

Hi @liran,

 

Have you solved your problem?

 

If you have solved your problem, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you still need help, please feel free to ask.

 

Best Regards,

Cherry

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

@liran

 

You can use VALUES or MAX or MIN instead of SELECTEDVALUE as well

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!

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.