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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Porntas
New Member

How to calculate average line in DAX which for SPC

I want to calculate linear average line for Line graph (Average line of below picture is from fucntion)

Porntas_0-1674628320180.png

I try to use DAX as CALCULATE(AVERAGEX(),ALLSELECTED()) but it not work I found problems

1. I linked Month Master[Month Name] With Test[Month] but the data is not show due to X-axis don't change as filter (From Month Master). But if I use Test[Month] as filter, it's my expectation. 

 

2. I want X-axis are BATCH ID but can filter by Month

 

3. It's will be a slot on line graph if there are blank cell in my query.

 

Please help me, I try for many days to solve

 

I've uploaded my file as below link
https://drive.google.com/file/d/1JL6Hyt3z3wtDqA1bmOLjWAn1IMN8-paR/view?usp=sharing

 

 

0 REPLIES 0

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.