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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

sum up to a certain point

hello, I am very new to power bi and in dax language, I wanted to make a query with an example, the column "cto level of line" is a simple sum of a certain field, what formula can I occupy so that the result reaches only the column site?, in the example to the store there are values in negative and in postive, I would like that in each warehouse I brought the total of the site and for everyone showed the value 0 that is the result if we only saw up to the site.

Cikfrid_2-1639198960770.png

Cikfrid_3-1639199138262.png

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

You could try ISINSCOPE() or ISFILTERED() function.

https://docs.microsoft.com/en-us/dax/isinscope-function-dax 

https://docs.microsoft.com/en-us/dax/isfiltered-function-dax 

Then create a measure like below to return different value depend on the ISINSCOPE() result.

IF(ISINSCOPE([column]),[sum],0)

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

1 REPLY 1
v-jayw-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

You could try ISINSCOPE() or ISFILTERED() function.

https://docs.microsoft.com/en-us/dax/isinscope-function-dax 

https://docs.microsoft.com/en-us/dax/isfiltered-function-dax 

Then create a measure like below to return different value depend on the ISINSCOPE() result.

IF(ISINSCOPE([column]),[sum],0)

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors