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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

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 @Anonymous ,

 

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 @Anonymous ,

 

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors