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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
NISHA_S
Resolver I
Resolver I

Showing value based on date selection

Can we update the  report to display $0.00 for the ‘ Unposted’ if the selected month is not the current month?

here is a sample report for reference

 

https://www.dropbox.com/s/iz44mcqx1hhlc2n/posted%20data.pbix?dl=0 

1 ACCEPTED SOLUTION
Samarth_18
Community Champion
Community Champion

Hi @NISHA_S ,

 

Create a measure like below:-

Measure =
VAR selected_category =
    TRIM ( MAX ( Sheet1[category_custom] ) )
RETURN
    IF (
        selected_category = "Unposted"
            && SELECTEDVALUE ( Sheet1[MonthYear] ) <> "Current Month",
        0.00,
        SUM ( Sheet1[amount1] )
    )

 

Attached the file for reference.

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

1 REPLY 1
Samarth_18
Community Champion
Community Champion

Hi @NISHA_S ,

 

Create a measure like below:-

Measure =
VAR selected_category =
    TRIM ( MAX ( Sheet1[category_custom] ) )
RETURN
    IF (
        selected_category = "Unposted"
            && SELECTEDVALUE ( Sheet1[MonthYear] ) <> "Current Month",
        0.00,
        SUM ( Sheet1[amount1] )
    )

 

Attached the file for reference.

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.