cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
MonicaElizondo Regular Visitor
Regular Visitor

ISINSCOPE help to delete row

Hello!!

 

I have an issue with the use of ISINSCOPE function,  I hope someone could help me! 

 

I want to remove the blank level of the hierachies, and im using some measures for this, but when delete the row, the next level is deleted too, and I dont want to delete.; only want to delete the level in blank.

 

001.JPG

 

Im included the example in the pbi file.

example pbi

 

Thanks for the help.

Monica

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: ISINSCOPE help to delete row

hi, @MonicaElizondo 

Just try this formula as below:

Measure = 
IF (
    IF ( ISINSCOPE ( Sheet1[GROUP_TYPE] ), 1, -1 )
        * IF ( ISINSCOPE ( Sheet1[DESC] ), 1, -1 ) = -1
        && SELECTEDVALUE(Sheet1[GROUP_TYPE]) = BLANK (),
    BLANK (),
    SUM ( Sheet1[VALUE] )
)

Result:

6.JPG

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
mussaenda Senior Member
Senior Member

Re: ISINSCOPE help to delete row

Hi @MonicaElizondo ,

 

From your Power BI File, I used a basic table to understand your question better

 

2019_09_14_11_48_22_example_hierarchies_2_Read_Only_Power_BI_Desktop.png

From this photo, you can see the blanks coming from Group_Type.

If you will hide it, it will also affect the columns with it.

 

 

For the workaround, You can substitute the blanks with other values or texts.

 

Community Support Team
Community Support Team

Re: ISINSCOPE help to delete row

hi, @MonicaElizondo 

Just try this formula as below:

Measure = 
IF (
    IF ( ISINSCOPE ( Sheet1[GROUP_TYPE] ), 1, -1 )
        * IF ( ISINSCOPE ( Sheet1[DESC] ), 1, -1 ) = -1
        && SELECTEDVALUE(Sheet1[GROUP_TYPE]) = BLANK (),
    BLANK (),
    SUM ( Sheet1[VALUE] )
)

Result:

6.JPG

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

MonicaElizondo Regular Visitor
Regular Visitor

Re: ISINSCOPE help to delete row

Thanks for the help.

Greetings

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 138 members 1,707 guests
Please welcome our newest community members: