Forum Discussion
SUMIFS in BI
- 9 years ago
Hi rajibmahmud,
Please use LOOKUP function, you can use mutiple conditions <search_columnName>, <search_value> like the criteria_range1, criteria1 in SUMIFS function.
Create a calculated column using the formula. And see the expected result shown in the screenshot below.Column = LOOKUPVALUE(Table1[CY Sales],Table1[Product],Table1[Product],Table1[Period],Table1[Period],Table1[Year],Table1[Year]-1)
Best Regards,
Angelia - 9 years ago
Hi rajibmahmud,
Please create a new table by clicking "New Table" under Modeling on home page using the formula. Please learn more about SUMMARIZE from here.NewTable=summarize(Table,Table[Period],Table[Version],Table[Product],"CY Sales",SUM(Table[CYSales]))
Then you will get single product in single month. Then create the calclated column using the formula above based on the new table.
Best Regards,
Angelia
Thanks a lot.
Will it do sumifs or lookup? In case of multiple value for single Product in a single month, will it work?
Example:
| Year | Period | Version | Product | CY Sales |
| 2016 | Jan | Actual | Ice Cream | 110 |
| 2016 | Jan | Actual | Ice Cream | 101 |
| 2016 | Jan | Actual | Ice Cream | 167 |
| 2016 | Apr | Actual | Ice Cream | 141 |
| 2016 | May | Actual | Ice Cream | 146 |
Hi rajibmahmud,
Please create a new table by clicking "New Table" under Modeling on home page using the formula. Please learn more about SUMMARIZE from here.
NewTable=summarize(Table,Table[Period],Table[Version],Table[Product],"CY Sales",SUM(Table[CYSales]))
Then you will get single product in single month. Then create the calclated column using the formula above based on the new table.
Best Regards,
Angelia