Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon'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.
Hello
I am creating a table using SUMMARIZECOLUMNS.
My original data looks as follows -
As you can see, there is only 1 category under India.
My table DAX created using SUMMARIZECOLUMNS is as follows -
Solved! Go to Solution.
Hello @Anonymous
SUMMARIZECOLUMNS without a calcualted value performs a CROSSJOIN on the columns and has no way to apply a filter to limit the returned rows (It doesn't know there is no data for India - Technology).
You can use summarize over the detail table then feed in the higher level columns and it will only return values that are represented in the lower level table. Something like
SummarizeTable = CALCULATETABLE ( SUMMARIZE ( OrderBreakdown, ListOfOrders[Country], OrderBreakdown[Category] ), 'ListOfOrders'[Country] = "India" )
This code assumes OrderBreakdown is the bigger detail table and ListOfOrders is joined to it as the 1 side of a *:1
As and example, this code would give me all of the Subcategory values that are represented in the Sales table and leave out any that are not.
Table = SUMMARIZE(Sales,'Product Subcategory'[Subcategory])
Hello @Anonymous
SUMMARIZECOLUMNS without a calcualted value performs a CROSSJOIN on the columns and has no way to apply a filter to limit the returned rows (It doesn't know there is no data for India - Technology).
You can use summarize over the detail table then feed in the higher level columns and it will only return values that are represented in the lower level table. Something like
SummarizeTable = CALCULATETABLE ( SUMMARIZE ( OrderBreakdown, ListOfOrders[Country], OrderBreakdown[Category] ), 'ListOfOrders'[Country] = "India" )
This code assumes OrderBreakdown is the bigger detail table and ListOfOrders is joined to it as the 1 side of a *:1
As and example, this code would give me all of the Subcategory values that are represented in the Sales table and leave out any that are not.
Table = SUMMARIZE(Sales,'Product Subcategory'[Subcategory])
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
79 | |
63 | |
52 | |
47 |
User | Count |
---|---|
215 | |
89 | |
76 | |
66 | |
60 |