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
ramshoney1225
Helper V
Helper V

Need help of filter selections

Hi ,

 

I have a page with slicer Month ( which shows from jan to dec ) . Now I have a graph with Month on X-axis , Measure1(Bar), Meassure2(Line), Measure3(line), Measrue4(line).

 

Now when i select Month Jan from Slicer, then the bar measure need to show Jan Value and the remaining 4 Line meeasures need to show from Jan to December values.

 

My understanding is so the X-axis shows Jan - Dec, based on selection the selected Months( shows bars for that Months), for remaining 4 line measures it shows for all 12 months.

 

Need quick help,Thanks for the support.

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @ramshoney1225 ,

 

I made a simple example

 

Sample data is this. The index column is to sort the month by the index column.

Screenshot 2021-04-07 155437.png

 

Create a separate table by entering data. There's no relationship between two tables.

Screenshot 2021-04-07 155542.png

 

Four measure are

Measure1(Bar) = CALCULATE(SUM('Table'[Value1]),FILTER('Table',[Month] in ALLSELECTED('Table (2)'[Month])))
Meassure2(Line) = SUM('Table'[Value2])
Measure3(line) = SUM('Table'[Value3])
Measrue4(line) = SUM('Table'[Value2])+SUM('Table'[Value3])

 

Screenshot 2021-04-07 155719.png

 

You can check details from the attachment.

 

 

Best Regards,

Stephen 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
v-stephen-msft
Community Support
Community Support

Hi @ramshoney1225 ,

 

I made a simple example

 

Sample data is this. The index column is to sort the month by the index column.

Screenshot 2021-04-07 155437.png

 

Create a separate table by entering data. There's no relationship between two tables.

Screenshot 2021-04-07 155542.png

 

Four measure are

Measure1(Bar) = CALCULATE(SUM('Table'[Value1]),FILTER('Table',[Month] in ALLSELECTED('Table (2)'[Month])))
Meassure2(Line) = SUM('Table'[Value2])
Measure3(line) = SUM('Table'[Value3])
Measrue4(line) = SUM('Table'[Value2])+SUM('Table'[Value3])

 

Screenshot 2021-04-07 155719.png

 

You can check details from the attachment.

 

 

Best Regards,

Stephen Tao

 

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

Tahreem24
Super User
Super User

@ramshoney1225  you can use the Edit interaction feature to disable remaining chart's interaction off with that Month Slicer.

Step1: Select Month Slicer and go to Format Menu then click on "Edit Interaction".

Step 2: Then click on all you charts which you want all 12 months on x-axis and click on None icon like below screen shot:

Capture.PNG

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
amitchandak
Super User
Super User

@ramshoney1225 , You need to use an independent date table for that. Based on the selected date you change the date range of the measures

 

refer my video how to use that : https://www.youtube.com/watch?v=lOEW-YUrAbE

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.