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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
hitesh160790
Frequent Visitor

Summarize results

I have a data model with 3 tables

 

1) ForecastPlan

Product NoForecast Plan
110
220

 

2) fact

 

Product NoDietQty Needed (a)
1Veg20
2Veg30
3N Veg10

 

3) Product

Product NOName
1A
2B

 

Relationships:

Product to Forecast Plan (1 to many)

Product to fact (1 to many)

 

I am getting below results (which is correct)

 

Product NoDietQty Needed (a)Forecast Plan (b)ComponentFinal (a*b)
1Veg2010C1200
2Veg3020C1

600

3N Veg1010C2

100

 

But I need summarized results

 

Veg : Final = 800

N Veg : Final = 100

 

I assume it is doing (20+30)*(10+20).

 

Can anyone help me out.

1 ACCEPTED SOLUTION

Hi @hitesh160790 ,

 

I have created a sample. I'm not clear how you want to show. 

 

If you want to show in table visual,  please try this:

Measure = SUM('Fact'[Qty Needed (a)])* SUM(ForecastPlan[Forecast Plan])

Measure 2 = SUMX(ALLEXCEPT('Fact','Fact'[Diet]),[Measure])

 

If you do it in matrix visual, please try:

Measure 3 = SUMX('Fact',[Measure])

4.PNG

 

For more details, please see the attachment.

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
AllisonKennedy
Super User
Super User

Sorry, I'm not sure I understand what the question is? Are you able to use a matrix visualization for this? 

 

Try using ALLEXCEPT(Fact[Diet]) in your measure if you still need the qty and other info in the table too:

Final Diet = CALCULATE([final], ALLEXCEPT(Fact[Diet]))


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

If I use matrix I am getting

 

Product NoQty Needed (a)Forecast Plan (b)ComponentFinal (a*b)

Veg (Diet)

1 (Product No)

2 (Product No)

20

30

10

20

C1

C1

200

600

TOTAL

50

30

 

1500

 

I need

Product NoQty Needed (a)Forecast Plan (b)ComponentFinal (a*b)

Veg (Diet)

1 (Product No)

2 (Product No)

20

30

10

20

C1

C1

200

600

TOTAL

 

No Total Here

 

800

Hi @hitesh160790 ,

 

I have created a sample. I'm not clear how you want to show. 

 

If you want to show in table visual,  please try this:

Measure = SUM('Fact'[Qty Needed (a)])* SUM(ForecastPlan[Forecast Plan])

Measure 2 = SUMX(ALLEXCEPT('Fact','Fact'[Diet]),[Measure])

 

If you do it in matrix visual, please try:

Measure 3 = SUMX('Fact',[Measure])

4.PNG

 

For more details, please see the attachment.

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @AllisonKennedy 

I tried using AllExcept.

I simply need the final result which is 

 

Veg : Final = 800

N Veg : Final = 100

 

My model is doing (20+30)*(10+20) which gives me 1500.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.