cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

How to dynamically display a result when capture a single value in one of 2 different slicers?

I have a Calendar Year column and a Fiscal Year column in the date-dimension table.

 

I put them in 2 slicers as follows.

5.PNG

 

I put 2 cards together as the following example: the big value (i.e. 64) that can be got when select a single value in slicer_1 or slicer_2;  the small value (i.e. 'LY: 74') that is for the previous year when select a single value in slicer_1 or slicer_2.

5a.PNG

 

I want:

  • when select a single value for Calender Year, only dispaly the small value for the previous Calendar Year;
  • when select a single value for Fiscal Year, only display the small value for the previous Fiscal Year.

For example, here when select 'FY 2018-2019' in slicer_2, only display the small value for the previous Fiscal Year 'FY 2017-2018'.

 

I guess there could be a IF function/expression for this previous stuff. But how to write it?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Memorable Member
Memorable Member

Re: How to dynamically display a result when capture a single value in one of 2 different slicers?

@powerbiasker ,

 

You would need two measures for big and small values respectively.

To get selected values you can leverage SELECTEDVALUE, HASONEVALUE and IF functions.

In order to receive more detailed help please provide sample data.


Regards,
Ruslan Zolotukhin (zoloturu)
BI Engineer at Akvelon Inc. / Kharkiv Power BI User Group Leader / DAX & Power BI Trainer
-------------------------------------------------------------------
Did I answer your question? Mark my post as a solution!
It was useful? Press Thumbs Up!

You are from Ukraine? If yes then welcome to Power BI User Group - KhPUG website. Other country? Check and find proper one - Power BI User Groups

View solution in original post

1 REPLY 1
Highlighted
Memorable Member
Memorable Member

Re: How to dynamically display a result when capture a single value in one of 2 different slicers?

@powerbiasker ,

 

You would need two measures for big and small values respectively.

To get selected values you can leverage SELECTEDVALUE, HASONEVALUE and IF functions.

In order to receive more detailed help please provide sample data.


Regards,
Ruslan Zolotukhin (zoloturu)
BI Engineer at Akvelon Inc. / Kharkiv Power BI User Group Leader / DAX & Power BI Trainer
-------------------------------------------------------------------
Did I answer your question? Mark my post as a solution!
It was useful? Press Thumbs Up!

You are from Ukraine? If yes then welcome to Power BI User Group - KhPUG website. Other country? Check and find proper one - Power BI User Groups

View solution in original post

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors