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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
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.

Top Solution Authors