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
TheSAY
Frequent Visitor

Multiple Months/Dates - Using Three Slicers

Good afternoon,

 

I am looking for some help to get a report changed for better utilization of the data, but I am currently struggling on how to do so.

 

We have a Membership Information report that is currently setup as follows:

  1. A folder called Units holds CSV spreadsheets.  They are titled as the year the data is for and contain data for December of that year.  For example, the 2012.csv spreadsheet contains data from December 2012.
  2. When the data is run, the "Report Run Date" data is the first of the new year.  For example, the 2012.csv spreadsheet has 01/01/2013 for the Report Run Date column.
  3. Data queries were created for each separate CSV file.  For example, a query called "Members 2012" was created for the 2012.csv file.
  4. Each query was edited to remove certain columns and add custom/conditional columns to differentiate the 2012 year from the 2013 year the report was run from.
  5. A "Members" query is combining all of them.

 

Here's what the 2012.csv looks like:

2012MemInfo.png

 

Here's what the query looks like, after making the changes needed (we only needed the Branch, Membership Type, Report Run Date, Current Units and Current Members columns):

2012MemQuery.png

 

In the example above, the "Year" column was added to allow the conditional column of "Report Year" to show the actual year the data was for.  2013 > 2012, 2014 > 2013, and so on.

 

As of right now, the report uses "Branch" and "Membership Type" as the slicers.

 

What's I'm hoping to do, is be able to run ALL of the date ranges together, rather than just December, and use a single spreadsheet to allow "Branch", "Membership Type" and "Month" as the slicers, so we have a better comparison per year, rather than all prior years remaining the same.

 

Here's what the spreadsheet looks like with everything:

MemInfoAllExample.png

 

We would need the same thing to happen, where if the "Report Run Date" is September, the actual month would be August, and if the "Report Run Date" is January, the actual month would be December of the prior year.

 

Testing it out, I was able to duplicate the December numbers, but only if Month "1" was selected.  Here's what it looks like:

MemInfoMonthSelect.png

 

As you can also see, it's only showing 2013 and not 2012 like the other one does.

 

Is anyone able to help me get this changed, so only one spreadsheet needs to be used, all years show up, and the three slicers can be used?

3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi @TheSAY,

 

Maybe we can create an independent date table and add the new date table as slicer to work on it. We can use SELECTEDVALUE function to create measures to work on it. Kindly share your pbix and csv to me, please upload the files to One Drive and share the link here.

 

Regards,

Frank

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

Hi @v-frfei-msft,

 

Sorry for the delayed response.  As requested, here are the PBIX and CSV files.

 

PBIX: https://1drv.ms/u/s!Ar-qf5t6I8TOo0RaeZ-fcD79r14V

 

CSV: https://1drv.ms/u/s!Ar-qf5t6I8TOo0W4IlAoQRMQmpiO

TheSAY
Frequent Visitor

Hi @v-frfei-msft,

 

I just wanted to follow up and see if you've had the chance to possibly take a look at this.

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.