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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
SandeepKumar421
Regular Visitor

Help OR (Opening Receivable)

Hello Friends,

I need a help to get the opening receivable.

 

Like  I have selected 31-08-2024 in slicer but I need data of year(2024,3,31). Please not getting even I have created a measure.

I have created hierarchy slicer "FY.EOM"

please helpScreenshot 2024-09-18 173447.png

1 ACCEPTED SOLUTION

Thank you so much sir for show me right track of filter.

I have done another way to find solution exactly what I want.

Ageing of OR New V1 =

Var Opening_Date = DATE(YEAR(EOMONTH(EDATE(SELECTEDVALUE('Calender'[EOM]), -3),0)),03,31)

Var Opening_Value =
CALCULATE(
    SUM('Ageing'[Pending]),
    FILTER(
        ALL('Calender'),
        'Calender'[EOM] = Opening_Date
    )
)

RETURN

Opening_Value

View solution in original post

5 REPLIES 5
SandeepKumar421
Regular Visitor

Sir, Can't do because I have multiple years 2021 to 2024. So As per indian FY. If I am selecting 31-08-2024 so opening year will 31-03-2024 . If I am selecting 31-08-2023 then opening year will 31-03-2023.

there is not fixed First Date

Hi @SandeepKumar421 

You can still use FirstDate, it will return the "first" value in the current filter.

Sales for eom =
CALCULATE(
    [Sum of Qty]
    ,'calendar table'[eom] = Date(Year(FIRSTDATE('calendar table'[eom])),03,31)
)
So if you tick 31-08-2024, FirstDate will return 31-08-2024.
It will avoid the issue of SelectedValue returning a blank when there are multiple items in the column.

If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Thank you so much sir for show me right track of filter.

I have done another way to find solution exactly what I want.

Ageing of OR New V1 =

Var Opening_Date = DATE(YEAR(EOMONTH(EDATE(SELECTEDVALUE('Calender'[EOM]), -3),0)),03,31)

Var Opening_Value =
CALCULATE(
    SUM('Ageing'[Pending]),
    FILTER(
        ALL('Calender'),
        'Calender'[EOM] = Opening_Date
    )
)

RETURN

Opening_Value
SandeepKumar421
Regular Visitor

Please help me how will do.

SamWiseOwl
Community Champion
Community Champion

Hi @SandeepKumar421 

Could you hover over the funnel on the card, this will show any other filters.

When I tried it worked perfectly...

SamWiseOwl_0-1726663106267.png

You could try using LastDate or FirstDate instead of SelectedValue.

SelectedValue will return a blank if multiple items are selected.


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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