Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello!
I am needing help as I've tried many methods but am unable to get the modeling to take in PowerBI. Ultimately I am looking to create a subset of a table.
I have tried Summarize, however keep getting "refers to multiple columns scalar expression errors"
I have (1) table that has EVERYTHING included in it. I am looking to create a 2nd table that includes the following:
I would like to group my large table by the following 5 items below, then create 2018 units and 2019 units.
-Customer_cd (1)
-Customer_nm (2)
-Location_Channel_cd (3)
-Location_Channel_Detail (4)
-Location_Channel_nm (5)
- New Metric 2018 Units = SUM([Units) where Fiscal_Year_nr = 2018
- New Metric 2019 Units = SUM(Units)) Where Fiscal_Year_nr=2019
Existing Table
Solved! Go to Solution.
hi, @cgoldstein
Just try this formula to create a new table
New table = SUMMARIZE ( 'Table', 'Table'[Customer_cd], 'Table'[Customer_nm], 'Table'[Location_Channel_cd], 'Table'[Location_Channel_Detail], 'Table'[Location_Channel_nm], "New Metric 2018 Units", CALCULATE ( SUM ( 'Table'[Units] ), 'Table'[Fiscal_Year_nr] = 2018 ), "New Metric 2019 Units", CALCULATE ( SUM ( 'Table'[Units] ), 'Table'[Fiscal_Year_nr] = 2019 ) )
If not your case, please share some simple sample data and your expected output.
Best Regards,
Lin
hi, @cgoldstein
Just try this formula to create a new table
New table = SUMMARIZE ( 'Table', 'Table'[Customer_cd], 'Table'[Customer_nm], 'Table'[Location_Channel_cd], 'Table'[Location_Channel_Detail], 'Table'[Location_Channel_nm], "New Metric 2018 Units", CALCULATE ( SUM ( 'Table'[Units] ), 'Table'[Fiscal_Year_nr] = 2018 ), "New Metric 2019 Units", CALCULATE ( SUM ( 'Table'[Units] ), 'Table'[Fiscal_Year_nr] = 2019 ) )
If not your case, please share some simple sample data and your expected output.
Best Regards,
Lin
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |