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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Measure not working in Values for charts

Hello,

 

I have a measure to calulate total customers in my store:

Customers = COUNTROWS(DISTINCT(SELECTCOLUMNS(FILTER(FACT,FACT[Appearance]=1 ),"x",Fact[ID])))
 
I have another measure from that to calulate the 25 Percentile of those customers through our the time period:

25p =

var A= ADDCOLUMNS(DimCalendar,"xCustomers ",[Customers ])
 
var B = PERCENTILEX.INC(t,[xCustomers ],0.25)

return CONCATENATE(SUBSTITUTE(FORMAT(i,"#,###"),",","."),UNICHAR(10))
 
 
Probelm is, i want to have the second measure (25p) on a line chart to see how the 25 Percentile changes overtime. The Customers measure works fine, but the 25p does not work on a line chart or a bar chart. I can do it in a table, but not on a chart.
 
Can anyone help or suggest me something?

Many thanks !
1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Jonas1992- You may need to use an ALL or ALLSELECTED with the percentile measure. Hard to say. It is not really enough information to go ahead, please first check if your problem is a common problem listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, check out this post on how to get answers to your question 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 edit bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

@Jonas1992- You may need to use an ALL or ALLSELECTED with the percentile measure. Hard to say. It is not really enough information to go ahead, please first check if your problem is a common problem listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, check out this post on how to get answers to your question 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 edit bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Yes ! It works with ALLSELECTED ! Thank you !!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.