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! Learn more

Reply
Anonymous
Not applicable

Measure get different result if slicer is "All" or maual selection of each items

Hi,


I have been using Power BI for a while now, and i'am now stucked:

My dataset contains forecasted figures. i want to be able to compare the forecast for June i had last week with the forecast i have this week. (i will talk of extract_date)

 

Now the weird thing: Depending on the way i select my extract date in the slicer, i do not got the same result:

If i select nothing, i have the right result:

Nothing SelectedNothing Selected

 

 

 

 

 

 


If i use the option "select All", i have the right result:

Select AllSelect All

 

 

 

 

 


If i select the options myself, the result is false:

Manuel selectionManuel selection

 

 

 

 

 

Any clue where this could come from?

I check the formulas several time, verified also the options in the calculate expression of my measures (i use calculate / Filter / Allexcept) --> the results are correct when i select all, of none, but it get weird only when i select each value
Thank you for your help!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I finally found a solution to my problem.

Although it do no ansewer exactly why the Slicers was being weird, i found a solution to display what a wanted.

 

The formula i build makes a distinction if it should calculate the total, or a row of my matrix. Based on that, made two possible results:

1- if it is the total, using allselected, and filtering on the Extract Date

2- if it is a row f my matrix: using all selected, and filtering on the extract date, and the dimension of my row.

 

Tank you all for your ideas !

BR

 

 

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

I finally found a solution to my problem.

Although it do no ansewer exactly why the Slicers was being weird, i found a solution to display what a wanted.

 

The formula i build makes a distinction if it should calculate the total, or a row of my matrix. Based on that, made two possible results:

1- if it is the total, using allselected, and filtering on the Extract Date

2- if it is a row f my matrix: using all selected, and filtering on the extract date, and the dimension of my row.

 

Tank you all for your ideas !

BR

 

 

Anonymous
Not applicable

it looks like using allselected instead of allexcept solve the problem for the total, but them i can not use a matrix visual to see the result on various dimensions of my dataset.

(i double and triple cheked, and all the colmns are well written in the allexcept...)

Any clue on how exactly the funtion allexcpet is working?

hi  @Anonymous 

I would suggest you create a Date Dimension Table and create the relationship with 'sheet1' table, then use this Date Dimension Table in the formula and visual.

Please refer to this document:

https://radacad.com/do-you-need-a-date-dimension

 

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.
Pragati11
Super User
Super User

HI @Anonymous ,

 

Are there any other values like BLANKS or NULLs in your Extract Date column?

 

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Hi,

 

no, there is no blank or null in my extract date column

Hi,

 

Can you share your .pbix file or may be sample data? It's hard to identify the issue.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Greg_Deckler
Community Champion
Community Champion

That's highly unusual. What does the source data look like behind this and what are the measure formulas? 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



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

Hi @Greg_Deckler 

Thanks for your quick reply.

The datasource behind is a huge table, without any relationships.

 

The formulas look like:

Value_offset =
var last_date = CALCULATE(MAX(Sheet1[Extract date]);FILTER(ALLSELECTED(Sheet1);Sheet1[Extract date]<MAX(Sheet1[Extract date])))
Return
CALCULATE(SUM(Sheet1[Value]);FILTER(ALLEXCEPT(Sheet1;Sheet1[date]);Sheet1[Extract date]=last_date))
 
However, when a created this formula in a dummy_data power BI, it gives the right result:
could the size of my dataset (>13mio rows) cause this kind of problems ?

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.

Top Solution Authors