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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
MagikJukas
Resolver III
Resolver III

Measure to ignore a field

Hello,

 

I have these two measures:

M1= CALCULATE(SUM(Data[Qty]),FILTER(ALLSELECTED('Date list'[Date]),'Date list'[Date]<=MAX('Date list'[Date])))
M2= CALCULATE(SUM(Data[Qty]),FILTER(ALLSELECTED(Data[Data type]),Data[Data type]="3p"))

 

when I create a chart, M1 shows only values associated to 3p. I want M1 to ignore "Data Type" and to show the total for all Data Type.

 

thanks

1 ACCEPTED SOLUTION
MagikJukas
Resolver III
Resolver III

Well, this is an embarassing one....

I just noticed my chart created a second vertical axis. I was looking the left one striggling to understand why the numbers are not matching. I now realized that the axis was moved to the right... 🤣

 

sorry guys! your solution work, but they are not necessary. thanks

View solution in original post

3 REPLIES 3
MagikJukas
Resolver III
Resolver III

Well, this is an embarassing one....

I just noticed my chart created a second vertical axis. I was looking the left one striggling to understand why the numbers are not matching. I now realized that the axis was moved to the right... 🤣

 

sorry guys! your solution work, but they are not necessary. thanks

Anonymous
Not applicable

Hi @MagikJukas ,

Please try below dax formula:

 

M1= CALCULATE(SUM(Data[Qty]),FILTER(ALLSELECTED('Date list'[Date]),'Date list'[Date]<=MAX('Date list'[Date])),REMOVEFILTERS('Data'[Data type]))

 

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

FreemanZ
Super User
Super User

hi @MagikJukas 

try like:

M1= CALCULATE(SUM(Data[Qty]),FILTER(ALLSELECTED('Date list'[Date]),'Date list'[Date]<=MAX('Date list'[Date])), ALL(Data[Data Type]))

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

Top Solution Authors