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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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