Forum Discussion

aey's avatar
aey
Regular Visitor
1 year ago
Solved

Filter visuals by 2 date columns

Hi all,   I need to filter measures in my Dashboard by 2 date columns. I have the columns "date of invoice sent" and "date of invoice paid". For my reporting, I need to set the filter so that "date...
  • v-ssriganesh's avatar
    1 year ago

    Hi aey,
    Thank you for sharing your scenario in the community forum.

    I’ve reproduced your requirement in Power BI and validated the logic using sample data. The expected output is achieved successfully invoices are correctly filtered based on the selected reporting period such that:

    • Only those invoices are shown where the 'Date of Invoice Sent' falls within the selected period.
    • And the 'Date of Invoice Paid' is either blank or after the reporting period ends.

    For your reference, I’ve attached a .pbix file demonstrating this logic end-to-end, including:

    • Sample MASTER and Date Period tables.
    • The DAX measure [IsValidInvoice] used for filtering.
    • A working visual that dynamically updates based on the selected reporting period.

    If this information is helpful, please “Accept as solution” and give a "kudos" to assist other community members in resolving similar issues more efficiently.
    Thank you.