cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
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.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 340 members 3,133 guests
Please welcome our newest community members: