cancel
Showing results for
Did you mean:
Anonymous
Not applicable

Filter on 2 values using AND

Heya Experts!

I create the following graph:

As you can see there is alot of 0 0 values.

The orange bar is calculated using

`Started = IF(ISBLANK(count('WorkItems In Progress WIP'[InProgressDateSK])),0,(count('WorkItems In Progress WIP'[InProgressDateSK])))`

and the blue ones using

`Completed = IF(ISBLANK(count('WorkItems Completed'[CompletedDateSK])),0,(count('WorkItems Completed'[CompletedDateSK])) )`

What i want now is a filter to only hide the values if both Completed AND Started is 0. if one of them is higher then 0 i'd like to show both.

To be honest i have no idea how to do this.

Thankyou.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Regular Visitor

Re: Filter on 2 values using AND

Hi,

i would try to create a new measure:

Sum=started+completed

and put this messure into the filter area and set the filter for "SUM" is greater than 0 ....

but maybe there is a better solution..

5 REPLIES 5
Member

Re: Filter on 2 values using AND

Do you have activated "Show with no data"?

Best Regards,
Miguel

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

Frequent Visitor

Re: Filter on 2 values using AND

Hi,

quick idea:

```shown =
IF ( AND ( Started = 0, Completed = 0 ), 0, 1 )```

and than on page/visual level filter filter only rows with value 1.

Highlighted
Regular Visitor

Re: Filter on 2 values using AND

Hi,

i would try to create a new measure:

Sum=started+completed

and put this messure into the filter area and set the filter for "SUM" is greater than 0 ....

but maybe there is a better solution..

Anonymous
Not applicable

Re: Filter on 2 values using AND

@lubosst wrote:

Hi,

quick idea:

```shown =
IF ( AND ( Started = 0, Completed = 0 ), 0, 1 )```

and than on page/visual level filter filter only rows with value 1.

Nope, doesnt work.

Maybe i have to add that started and completed are measures.

Anonymous
Not applicable

Re: Filter on 2 values using AND

@Sonne wrote:

Hi,

i would try to create a new measure:

Sum=started+completed

and put this messure into the filter area and set the filter for "SUM" is greater than 0 ....

but maybe there is a better solution..

Sometimes i wonder how i cant come up with this kind of stuff..

Thanks alot!

Announcements

Community Highlights

Find out what's new in the Power BI Community!

Power Platform Summit North America

Register by September 5 to save \$200

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 6 members 3,151 guests
Recent signins: