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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
PowerOper
Frequent Visitor

Cross plot of same field with two different filters applied

I have a table 'tbl_values' with 3 fields that stores time and value pairs for different entities

  • [entity_ID]
  • [time]
  • [value] 

 

I would like to cross plot the values for one entity_ID vs. the values of a second entity_ID within the same time range.  It is safe to assume that for each [time] there is a [value] for each [entity_ID]

 

I can't figure out how to do this!  Do I need to generate another table in order to do this? It would be nice to have 2 slicers on entity_ID to select each entity for the crossplot, but I'm unable to drag the [value] item twice to the same plot and I'm not sure how to create a measure that would reference the slicer selection.   Even if I can get one cross plot working, I can probably figure out the slicer afterwards...

 

Any ideas?

1 ACCEPTED SOLUTION

I've solved my problem by adding 2 queries that select rows from the initial values table for a specific entity_ID

View solution in original post

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

hi, @PowerOper 

Sample data and expected output would help tremendously. 
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

 

 

Best Regards,

Lin

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

Hi, here is some sample data to show what I am looking to do.   I would like to specify 2 entity_ID values, and extract the values at coinciding times for each entity_ID to cross plot one vs the other.

 

SAMPLE DATA
tbl_values
entity_IDtimevalue
1002019-09-01 0:00            518
1002019-09-01 1:00            578
1002019-09-01 2:00            541
1002019-09-01 3:00            600
1002019-09-01 4:00            551
1002019-09-01 5:00            430
1002019-09-01 6:00            446
1002019-09-01 7:00            458
1002019-09-01 8:00            490
1002019-09-01 9:00            573
1002019-09-01 10:00            545
1002019-09-01 11:00            481
1002019-09-01 12:00            519
2002019-09-01 0:00         7,699
2002019-09-01 1:00         8,560
2002019-09-01 2:00         8,018
2002019-09-01 3:00         8,900
2002019-09-01 4:00         8,161
2002019-09-01 5:00         6,611
2002019-09-01 6:00         6,794
2002019-09-01 7:00         6,935
2002019-09-01 8:00         7,331
2002019-09-01 9:00         8,485
2002019-09-01 10:00         8,075
2002019-09-01 11:00         7,217
2002019-09-01 12:00         7,713

 

Desired Output for value crossplot: entity_ID=200 vs entity_ID=100

 

value_xvalue_y
518                  7,699
578                  8,560
541                  8,018
600                  8,900
551                  8,161
430                  6,611
446                  6,794
458                  6,935
490                  7,331
573                  8,485
545                  8,075
481                  7,217
519                  7,713

 

I've solved my problem by adding 2 queries that select rows from the initial values table for a specific entity_ID

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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