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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Nara
New Member

A line graph shows a straight line when using two slicers

Please help!

 

hello, I am very new to this. I have created a line graph showing the use of transportation in different countries and want to use two slicers to filter the graph (both from the same data source). One slicer is a list of countries, the other one is transportation type. however, when I select one item from each slicer the graph shows a horizontal line, which is wrong. The graph works fine when I select one item from one slicer and select all items in another. My values are SMA.

2 REPLIES 2
Nara
New Member

@Greg_Deckler Hi Greg! Thank you for replying. 

 

So this is my table, the "Custom" column is my Value. Table.jpg

 

Both sample data (transportation type and conutries) are text. I want to create to slicers (list of countries and list of transport types). My axis for the line graph is Date. But choosing one item from each slicer (e.g. Brazil and walking) gives me a straight horizontal line. The graph seems to work when I choose all countires and one tranport type, and vice versa (one country and all transport types).

 

Hope this was a clearer explanation.

 

Thank you!!!

Greg_Deckler
Super User
Super User

@Nara Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.


Follow on LinkedIn
@ 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...

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.