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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
rajesh2001
Advocate I
Advocate I

Using Slicer to Ge data for Rolling 3 Months

Hi All,

 

I have a requirement where when the user selects a particular Fiscal period like FY 17 - Q1 , it should automatically get the previous 2 quarters data with the current one 

 

Slicer Value Selected : FY17-Q1

 

Data To be Shown:

 

Fiscal Qtr   Revenue

FY16 Q3  - 100$

FY16 Q4  -  80 $

FY17 Q1  - 90 $

 

Our calendar is a customized calendar and does not start on the first day of every month for each fiscal period .

Any help is appreciated  

 

I have tried different options but came up blank in acheiving this .

 

1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @rajesh2001,

 

I think we need to create two tables in this scenario. The tables look like this:

 

Using Slicer to Ge data for Rolling 3 Months.jpg

 

 

 

 

 

 

 

 

 

 

 

The bridge table could use this formula:

BridgeTable = values(ForSlicer[column2])

Finally, create relationships(the direction should be "both"). ForSclier->BridgeTable->Calendar.Using Slicer to Ge data for Rolling 3 Months1.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Please refer to this post: problem-with-calculation-many-to-many. It's almost the same with yours.

 

Best Regards!

Dale

 

 

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

2 REPLIES 2
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @rajesh2001,

 

I think we need to create two tables in this scenario. The tables look like this:

 

Using Slicer to Ge data for Rolling 3 Months.jpg

 

 

 

 

 

 

 

 

 

 

 

The bridge table could use this formula:

BridgeTable = values(ForSlicer[column2])

Finally, create relationships(the direction should be "both"). ForSclier->BridgeTable->Calendar.Using Slicer to Ge data for Rolling 3 Months1.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Please refer to this post: problem-with-calculation-many-to-many. It's almost the same with yours.

 

Best Regards!

Dale

 

 

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

Thanks a lot Dale . This solution helps 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors