cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
admin11
Post Prodigy
Post Prodigy

How to remove P&L row which is not required ?

Hi All

 

I have below expression from @amitchandak  , is working fine , but i need to remove the extra row which is not necessary.

 

Current month - 1 PnL =
VAR _MIN =
EOMONTH ( TODAY (), -4 ) + 1
VAR _MAX =
EOMONTH ( TODAY (), -3 )
RETURN
TOTALYTD (
( GL[AMOUNT_1] ),
'Date'[Date],
FILTER ( 'Date', AND ( 'Date'[Date] >= _MIN, 'Date'[Date] <= _MAX ) )
)

 

admin11_0-1620478241032.png

My PBI file :-

https://www.dropbox.com/s/2u3bhe54yk67ckp/PBT_V2021_400%20GL_TI.pbix?dl=0

 

Paul Yeo

1 ACCEPTED SOLUTION
MFelix
Super User III
Super User III

Hi @admin11 

 

Current month - 1 PnL =
VAR _MIN =
    EOMONTH ( TODAY (), -4 ) + 1
VAR _MAX =
    EOMONTH ( TODAY (), -3 )
RETURN
    IF (
        ISBLANK ( [PnL_LYTD] ),
        BLANK (),
        TOTALYTD (
            ( GL[AMOUNT_1] ),
            'Date'[Date],
            FILTER ( 'Date', AND ( 'Date'[Date] >= _MIN, 'Date'[Date] <= _MAX ) )
        )
    )

 

MFelix_0-1620483750059.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
MFelix
Super User III
Super User III

Hi @admin11 

 

Current month - 1 PnL =
VAR _MIN =
    EOMONTH ( TODAY (), -4 ) + 1
VAR _MAX =
    EOMONTH ( TODAY (), -3 )
RETURN
    IF (
        ISBLANK ( [PnL_LYTD] ),
        BLANK (),
        TOTALYTD (
            ( GL[AMOUNT_1] ),
            'Date'[Date],
            FILTER ( 'Date', AND ( 'Date'[Date] >= _MIN, 'Date'[Date] <= _MAX ) )
        )
    )

 

MFelix_0-1620483750059.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

aj1973
Community Champion
Community Champion

Hi Paul,

Uncheck the Blank box in the filters

aj1973_0-1620483393119.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors