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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! 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
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

Top Solution Authors