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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
ringovski
Helper II
Helper II

All Column from rows

Hi All,

 

Problem, I would like to have states grouped together as 'All" which is a sum of states and then seperately in the one matrix table. I have added a 'All' column to the dimension but this only works in a seperate matrix table. Is there a way to do this?

 

Required:

 

StatesValue$
Allxxxx
NSWxxxx
ACTxxxx
SAxxxx
WAxxxx
NTxxxx
QLDxxxx
VICxxxx

 

I have a fact table a state dimension table, the state dimension has a row for each state and joins to the fact on the SK.

 

Table name Export_Fact_Codes_All       
        
calendar_sk country_sk loading_sk discharge_sk product_code_sk state_sk quantity_sk value$
30010016001211 4001 328967  
30010116011212 600 84353905  
30010226031212 800 41839
30110016001212 900 12888454  
30110126011213 1000 27880729  
30110226021215 200 230237  

 

Dim_State   
 state_skState_CodeState_DescriptionAll_Description
1NSWNew South WalesAll
2QLDQueenslandAll
3SASouth AustraliaAll
4WAWestern AustraliaAll
5NTNorthern TerritoryAll
6TASTasmaniaAll
7VICVictoriaAll
8ACTAustralian Capital TerritoryAll

 

Thanks for any assistance.

4 REPLIES 4
Anonymous
Not applicable

Hi @ringovski ,

 

I can't understand it very well. Could you provide me with a .pbix file?

 

Best regards,
Community Support Team_ Scott Chang

ringovski
Helper II
Helper II

Thanks for the replies.
Client wants to be able to compare the sum of all states and each state at the same time in one visual, in this case a matrix table. I created the all column in the dimension table though this only works in a seperate matrix table.

 

Current (seperate tables)

All ColumnValue$
Allxxxx

 

StateValue$
NSWxxxx
VICxxxx
SAxxxx
WAxxxx
NTxxxx
.... 

 

Desired (one table)

StatesValue$
Allxxxx
NSWxxxx
VICxxxx
SAxxxx
WAxxxx
NTxxxx
.... 

 

Thanks

Anonymous
Not applicable

Hi @ringovski ,

 

There doesn't seem to be a way to add a row named ALL but Dax generates it automatically, I can provide you with a kind of workaround and you can check the result below:

vtianyichmsft_0-1700212929085.png

Measure = var _t= ADDCOLUMNS('Table',"Sum",SUMX(FILTER(ALL('Table'),[ state_sk]=EARLIER([ state_sk])),[ value$]))
return SUMX(_t,[Sum])

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

vanessafvg
Community Champion
Community Champion

so are you saying you want a column for all totals? is that what you are asking?  How do you want to use this ALL?

 

If you are needing to create this on a column not as a measure as you have put above then you probably need to either aggregate all values on to one fact line in your fact at the grain with an all key that sits like a state in the dimension with a row like all, not as a seperate column

 

you cannot place all on the slicer like you have above if its not in the same column.

 

 

 

 

 

 

 

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.