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

Incorrect Date result from Slicer

Hello,

 

I am trying to get the date values with some IF statement from the Date Slicer, but I can't get the correct info:

 

New Columns created:

START_TIME_SLICER =
Var _Min =
    MINX(
        ALLSELECTED(outage[start_time]),
        outage[start_time])
 VAR min_date = IF (
     outage[start_time] >= _Min,
        _Min,
        outage[start_time]
        )

   RETURN
min_date
 
 
END_TIME_SLICER =
Var _Max =
    MAXX(
        ALLSELECTED(outage[end_time]),
        outage[end_time])
 VAR max_date = IF (
     ISBLANK(outage[end_time]),
        _Max,
        outage[end_time]
        )

   RETURN
max_date
 
 That's the relation of Date table con data table.
Relation.png

 

And the wrong result:

 

Incorrect data from slicer.png

 

I need to have the dates of start and end from the selected date in the slicer. 

Anyone could help me.

 

Many thanks.

Oscar

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @oscaag,

Current power bi does not support creating dynamic calculated column/table based on filter selections. They work on different levels and you can't use child to affect its parent. For this sceniaro, I'd like to suggest you use measure expression instaed.

Notice: the data level of power bi(from parent to child level)

Database(external) -> query table(query, custom function, query parameters) -> data model table(table, calculate column/table) -> data view with virtual tables(measure, visual, filter, slicer)

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

HI @oscaag,

Current power bi does not support creating dynamic calculated column/table based on filter selections. They work on different levels and you can't use child to affect its parent. For this sceniaro, I'd like to suggest you use measure expression instaed.

Notice: the data level of power bi(from parent to child level)

Database(external) -> query table(query, custom function, query parameters) -> data model table(table, calculate column/table) -> data view with virtual tables(measure, visual, filter, slicer)

Regards,

Xiaoxin Sheng

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.