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
pswigert
Regular Visitor

Line Chart- Multiple Lines Each Based on Same Value but by different time events

If my data looks like:

 

ID          EventA            EventB            EventC

1           5/3/2016        5/7/2016          5/9/2016

2           5/3/2016        5/2/2016          6/8/2016

3           5/3/2016        5/1/2016          9/9/2016

4           5/3/2016        7/7/2016          11/4/2016

5           6/11/2016      6/14/2016        11/13/2016

 

Is it possible to have a line chart where the y axis is the counts of the IDs and the axis is just the day, but three lines: counts of eventA, counts of eventB, and counts of eventC on that day?

1 ACCEPTED SOLUTION
v-sihou-msft
Employee
Employee

@pswigert

 

In this scenario, since you need to get the count id group on Event and Date, you need to unpivot all other columns in Query Editor.

 

12.PNG

 

Then you table will look like below:

 

13.PNG

 

Now you can just set the aggregate type into "Count (Distinct)" for ID.

 

14.PNG

 

When using chart visual, just dray the "Attribute" in Legend.

 

6.PNG

 

Regards,

Simon Hou

 

 

View solution in original post

2 REPLIES 2
v-sihou-msft
Employee
Employee

@pswigert

 

In this scenario, since you need to get the count id group on Event and Date, you need to unpivot all other columns in Query Editor.

 

12.PNG

 

Then you table will look like below:

 

13.PNG

 

Now you can just set the aggregate type into "Count (Distinct)" for ID.

 

14.PNG

 

When using chart visual, just dray the "Attribute" in Legend.

 

6.PNG

 

Regards,

Simon Hou

 

 

Baskar
Resident Rockstar
Resident Rockstar

Sorry dude we cant do like this .

 

but we can do one thing , set hierarchy but it won't help on your case .

 

 

i thing u have to understand dude.

 

multiple dimension at single can't possible i think so.

 

sorry

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.