Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I need help in summing up the values from a calculated Table. Please check the DAX
Tbl_Trend =
VAR A = SELECTCOLUMNS(FILTER(TableA, TableA[Date] = MAX(TableA[Date])), "Country", MAXX(RELATEDTABLE(TableB),TAbleB[Country]), "Sales", TableA[Sales])
VAR B = SUMMARIZE(A, [Country], SUM(Sales))
I am getting an error on SUM(Sales)
Solved! Go to Solution.
@sathishsam , If A nad B are Realated
Sumamrize(FILTER(TableA, TableA[Date] = MAX(TableA[Date])), TableB[Country], "Sales", Sum(TableA[Sales]) )
You can also explore Groupby
example here
https://amitchandak.medium.com/power-bi-power-query-vs-dax-append-and-summarize-data-233f173d0839
@sathishsam , If A nad B are Realated
Sumamrize(FILTER(TableA, TableA[Date] = MAX(TableA[Date])), TableB[Country], "Sales", Sum(TableA[Sales]) )
You can also explore Groupby
example here
https://amitchandak.medium.com/power-bi-power-query-vs-dax-append-and-summarize-data-233f173d0839
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
87 | |
81 | |
53 | |
38 | |
35 |