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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Visualize two category and two values in single chart

Hello Chams,

I've below data. 

Job TypeDateDuration in MinuteMoving Avrage
Amicable8/1/202113.1113.11
Amicable8/2/202113.1313.09
Amicable8/3/202113.0413.09
Amicable8/4/202112.4912.94
Amicable8/5/202112.1312.75
Amicable8/6/202112.5712.75
Amicable8/7/202114.1112.94
Amicable8/8/202112.4312.88
Amicable8/9/202112.5812.84
Amicable8/10/202114.0612.97
Amicable8/11/202113.4713.01
Amicable8/12/202112.5512.97
Amicable8/13/202111.0312.82
Amicable8/14/202113.1312.85
Litigation8/1/202113.0712.86
Litigation8/2/202113.1212.88
Litigation8/3/202113.2212.9
Litigation8/4/202113.1912.91
Litigation8/5/202111.4112.83
Litigation8/6/202113.3212.86
Litigation8/7/202113.0312.87
Litigation8/8/202113.0412.87
Litigation8/9/202113.2212.89
Litigation8/10/202113.3812.91
Litigation8/11/202113.1113.11
Litigation8/12/202113.2413.18
Litigation8/13/202113.1813.18
Litigation8/14/202112.4513


I need to visualize the above data in a single chart. Could you please suggest me a visual in which my data story would be really clear.

as of now I'm using two chart to display the above data. One is line chart to show the Duration by Job Type and Date and the other one is Clustored Bar Chart to show Moving Avrage by Job Type and Date.

Please take a look at the image what I have done so far.

Visual.JPG

I tried over lapping the one visual on another but unfortunatly I'm not able to match the X asis and Y axis. It diffres when I'm importing actual data.

I even tried small multiples. That is working fine when I've two Job type. When I've data for only one Job Type then it is leaving blank for other row in small multiple. and that is something which is making it worst.

Requesting you to kindly help in this.

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

Hi @Anonymous ,

You could create two measure like below:

 

avalue = CALCULATE(SUM('Table'[Duration in Minute]),FILTER(ALL('Table'),'Table'[Job Type]="Amicable"&&'Table'[Date]=MAX('Table'[Date])))
bvalue = CALCULATE(SUM('Table'[Duration in Minute]),FILTER(ALL('Table'),'Table'[Job Type]="Litigation"&&'Table'[Date]=MAX('Table'[Date])))

 

Then create visual :

vluwangmsft_0-1629096513177.png

 

You could download my pbix file if you need.

 

 

Wish it is helpful for you!

 

Best Regards

Lucien

View solution in original post

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

You could create two measure like below:

 

avalue = CALCULATE(SUM('Table'[Duration in Minute]),FILTER(ALL('Table'),'Table'[Job Type]="Amicable"&&'Table'[Date]=MAX('Table'[Date])))
bvalue = CALCULATE(SUM('Table'[Duration in Minute]),FILTER(ALL('Table'),'Table'[Job Type]="Litigation"&&'Table'[Date]=MAX('Table'[Date])))

 

Then create visual :

vluwangmsft_0-1629096513177.png

 

You could download my pbix file if you need.

 

 

Wish it is helpful for you!

 

Best Regards

Lucien

Greg_Deckler
Community Champion
Community Champion

@Anonymous Why not a column and line chart?



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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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