Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Help needed table with 2 comparison columns - 2 slicers needed to operate the dates independently

OutcomeDistinct Count of period 1% period 1Distinct Count of period 2% Period 2
Outcome 1    
Outcome 2    
Outcome 3    
Outcome 4    
Outcome 5    

 

The outcome is a Distinctcount of the product ID.

 

Two date slicers would be needed to aid the users to operate the comparison periods between 1 and 2.

Can anyone help me do this?

 

3 REPLIES 3
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

Please provide some sample data in source dataset and show us your expected output.

How to Get Your Question Answered Quickly

 

Regards,

Yuliana Gu

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

One way to do this is to have two disconnected Calendar tables. A slicer is tied to each one but these slicers do NOT filter anything on the page. You then construct measures such that they start out with something like:

 

Measure = 
VAR __date1 = MAX(Calendar1[Date])
VAR __date2 = MAX(Calendar2[Date])
...

You can then base your calculations on these VAR's. This might also help:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks for the reply.

I need the two slicers for example have the ability to show the data in the table from the outcomes by operating the first slicer in say Period 1 date point x and y to slicer Period 2 date point x and y.

 

Can you help?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.