cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ansa_naz Member
Member

Apply one slicer OR another to a table visual - is this possible?

I have a table visual showing customer transactions

I have two slicers - one to slice for all Outstanding transactions, one to slice for all transactions from the last year. I want to display transactions which are outstanding OR transactions from the last year. Is this possible?

 

Cheers

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Apply one slicer OR another to a table visual - is this possible?

@ansa_naz ,

 

I'm afraid slicer can't achieve your requirement because the condition is always "and" between slicers. As a workaround, you can create a table using DAX below:

New Table = 
VAR Condition1 = FILTER('Table', 'Table'[Date] >= EDATE(TODAY(), -12))
VAR Condition2 = FILTER('Table', 'Table'[Outstanding] <> 0)
RETURN
DISTINCT(UNION(Condition1, Condition2))

Capture.PNG 

 

Community Support Team _ Jimmy Tao

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
Community Support Team
Community Support Team

Re: Apply one slicer OR another to a table visual - is this possible?

@ansa_naz ,

 


@ansa_naz wrote:

I have a table visual showing customer transactions

I have two slicers - one to slice for all Outstanding transactions, one to slice for all transactions from the last year. I want to display transactions which are outstanding OR transactions from the last year. Is this possible?

 

Cheers


Could you please share more details? For example, which columns are two slicers based on? In addtion, could you share some sample data and give the expected result?

 

Regards,

Jimmy Tao

ansa_naz Member
Member

Re: Apply one slicer OR another to a table visual - is this possible?

Hi @v-yuta-msft see below example tables:

 

Transactions:

ID          Amount           Date                   Outstanding

1            500                  01/01/2019        0

2            1000                01/01/2018        50

3            1500                01/01/2018        0

4             2000               01/01/2019        65

5            125                 31/12/2015         0

6            222                 15/06/2005         12

 

Datetable:

Date

01/01/2000

...

31/12/2030

 

Todays date = 26/06/2019

 

Relationships:

Datetable.Date    1--->M     Transactions.Date

 

Slicers are on fields Datetable.Date (Last 12 Months) and Transactions.Outstanding (<> 0)

 

I want to display the following in a table visual:

 

ID          Amount           Date                   Outstanding

1            500                  01/01/2019        0

2            1000                01/01/2018        50

4             2000               01/01/2019        65

6            222                 15/06/2005         12

 

Any ideas on how to accomplish this?

Cheers

Community Support Team
Community Support Team

Re: Apply one slicer OR another to a table visual - is this possible?

@ansa_naz ,

 

I'm afraid slicer can't achieve your requirement because the condition is always "and" between slicers. As a workaround, you can create a table using DAX below:

New Table = 
VAR Condition1 = FILTER('Table', 'Table'[Date] >= EDATE(TODAY(), -12))
VAR Condition2 = FILTER('Table', 'Table'[Outstanding] <> 0)
RETURN
DISTINCT(UNION(Condition1, Condition2))

Capture.PNG 

 

Community Support Team _ Jimmy Tao

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

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Top Solution Authors
Top Kudoed Authors