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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
dogba
Frequent Visitor

Get table total as column while having filter condition from related table slicer (ALLSELECTED)

Consider 2 Tables: 

Fact Table: 

PolicyValue
A100
B200
C300
D400
E500

 

Dimension Table: 

PolicyRegion
AUS
BUK
CEMEA
DUS
EUK


Both tables related on key - "Policy"

For my table visual, I would like to calculate a simple measure "New Measure" which gives me the total of the entire table as a separate column. As such: 

PolicyValueNew Measure
A1001500
B2001500
C3001500
D4001500
E5001500


Measure Used: 

New Measure = CALCULATE(SUM('FACT'[Value]), ALLSELECTED('FACT'))


However, I have region (from dimension table) as slicer in my report page. This is somehow breaking the table and returning all rows 

dogba_0-1749339161966.png

Above screenshot, can see even on selecting EMEA, I get all five records. I have a feeling it is doing some sort of cartesian join when using ALLSELECTED.

Expected Behavior: I would like the region slicer to work but see the table total as a different column. 

dogba_1-1749339579470.png

 


How can I achieve this? 

Hopefully, question makes sense - happy to provide more details. Thank you. 

Note: Example has been simplified - original use case has multiple dimension tables and fact table has a few million records. Hence, I would need a scalable solution. 

Pbix: Link

Edit: I would need to have the Policy field in my final visual come from table - FACT (not DIM). The original relationship between two is not on this field hence they're not interchangeable. 

2 ACCEPTED SOLUTIONS
Irwan
Super User
Super User

hello @dogba 

 

i might be misunderstood but i am using your DAX but get different result with EMEA.

Irwan_0-1749345169337.pngIrwan_1-1749345193585.png

 

Have you created a relationship between fact and dim table?

it is one-to-one in my screenshot, but in your original table it most likely one-to-many from dim to fact table.

Irwan_2-1749345264135.png

 

Hope this will help.

Thank you.

View solution in original post

Anonymous
Not applicable

Hi @dogba 
Thank you for reaching out microsoft fabric community forum.

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

View solution in original post

9 REPLIES 9
Anonymous
Not applicable

Hi @dogba 
Thank you for reaching out microsoft fabric community forum.

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

Hi @dogba,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the issue is resolved?
If any response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @dogba,

 

We wanted to kindly follow up to check if the issue is resolved?
If any response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Ashish_Excel
Super User
Super User

Hi,

These images should clarify

Ashish_Excel_0-1749351676207.pngAshish_Excel_1-1749351692476.png

 

Thank you for your response. Your solution works but in my table visual, I need the field Policy to come from FACT table (not DIM). Realise my example may have been a little too simple as my original relationship is not on the policy field but a different category. As such, this would not allow me to use Policy field from the region dimension table. 

This is what I am getting on using Policy from FACT table (note how measure returns row total and not overall total)

dogba_0-1749382209420.png


Is there any way to achieve this?

You are welcome.  That is not the right table to drag it from.  That field should be dragged from the Dim table.

Irwan
Super User
Super User

hello @dogba 

 

i might be misunderstood but i am using your DAX but get different result with EMEA.

Irwan_0-1749345169337.pngIrwan_1-1749345193585.png

 

Have you created a relationship between fact and dim table?

it is one-to-one in my screenshot, but in your original table it most likely one-to-many from dim to fact table.

Irwan_2-1749345264135.png

 

Hope this will help.

Thank you.

dogba
Frequent Visitor

Thank you for your response - can you see my reply above? 
I think my question was unclear - the Policy field must come from FACT table in the final table visual as the original relationship is on a different category field. 
I will update my question but hopefully it is clearer this time - is this possible to achieve?

hello @dogba 

 

if you want to filter out a value like you have shown in expected behaviour, your need a value in table visual that has a relationship from your dim tabl.

 

from your updated question, seems there is no relationship between your sample data (the relationship goes to another column which is not shown in sample data).

 

please share a sample data that represent your original data.

there might be a way around to achive your requirement (consume Policy from fact tbl).

 

Thank you.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors