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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Getting the same total value for each category

Hi Experts,

 

I am facing issue with one of the measure, 

 

Target_V = CALCULATE(SUM('goal'[targetmoney_base]),ALLEXCEPT(opportunityproduct,opportunityproduct[productfamilylevelaname]))
 
getting same value for each of the category when adding it in my matrix visual. 
 
Please suggest.
 
mmcaccount_1-1718006183006.png

 

3 REPLIES 3
Uzi2019
Super User
Super User

Hi @Anonymous 

yes. it will give you the value by applying ALLEXCEPT(). 

can you pls show case by taking normal table and add all the product columns and targetmoney_base and check share screenshot what value do you need against which product value.???

 

You can do the same thing in excel just random data with all level of hierarchy and show wht data you want to show again each category.

 

share input and expected output..

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
Anonymous
Not applicable

Example: I have a table with opportunityProduct and have the A_productfamily, B_productfamily,C_productfamily& D_productfamily as categories and i want to map all the above categories files to my Target value. to get the right values for each product family i tried with All EXCEPT function, which is not working in my DAX logix.

 

Please suggest. 

 

Note: Target value is a measure from a goal table which is not have an direct relationship with OpportunityProduct table.

 

Please help

 

Hi @Anonymous ,

Does the goal table have a field corresponding to “A_productfamily”, “B_productfamily”, “C_productfamily ” & ‘D_productfamily’?

 

If so, try something like this.

Target_V =
CALCULATE (
    SUM ( 'goal'[targetmoney_base] ),
    'goal'[productfamilyfield]
        = SELECTEDVALUE ( 'opportunityproduct'[productfamilylevelaname] )
)

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

Helpful resources

Announcements
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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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