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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
admin11
Memorable Member
Memorable Member

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
Super User

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
Super User

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



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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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
Top Kudoed Authors