Hello,
I need assistance on what should be a simple task.
I am currently setting up Power BI for our business where as previously they have been using IBM Cognos, or just straight Excel file outputs with lots of tables of countifs and sumifs, etc. The most complex they had were pivot tables in Excel.
I am pretty new to power BI and am still getting used to the slight formula and syntax differences from excel. I am trying to setup a sales dashboard and I need to build a measure that will count the distinct string values in one column with the possible values being - Blank, Product 1, Product2, Product 3 or Product 4. I then need the same measure to do the same count on a second column that will contain the same 5 possible values (but never the same in each column except blanks). So Product 1 can appear in either of the two columns, but never both, etc.
They basically represent addon products that are attached to single product sale and the customers can have a choice of two addon products. So each sales line in the database will contain either two blank values in these columns, one blank and one product, or two different products.
I have tried a CALCULATE(distinct count)), and have even added conditional columns in Power Query to do the lookup, so I have 4 additional columns titled Product 1, Product 2, etc that now have a 1 or a zero if it applies to that policy line.
But neither method (the calculate/disctinct count) or the additional column with a 1 or zero allow me to visualise them in a simple bar chart.
First of all, before I query if I am trying to visualise them correctly. Is there a way to create a simple aggregate or measure in Power BI that will give me a total count of each product string over the two columns?
I need assistance on what should be a simple task.
I am currently setting up Power BI for our business where as previously they have been using IBM Cognos, or just straight Excel file outputs with lots of tables of countifs and sumifs, etc. The most complex they had were pivot tables in Excel.
I am pretty new to power BI and am still getting used to the slight formula and syntax differences from excel. I am trying to setup a sales dashboard and I need to build a measure that will count the distinct string values in one column with the possible values being - Blank, Product 1, Product2, Product 3 or Product 4. I then need the same measure to do the same count on a second column that will contain the same 5 possible values (but never the same in each column except blanks). So Product 1 can appear in either of the two columns, but never both, etc.
They basically represent addon products that are attached to single product sale and the customers can have a choice of two addon products. So each sales line in the database will contain either two blank values in these columns, one blank and one product, or two different products.
I have tried a CALCULATE(distinct count)), and have even added conditional columns in Power Query to do the lookup, so I have 4 additional columns titled Product 1, Product 2, etc that now have a 1 or a zero if it applies to that policy line.
But neither method (the calculate/disctinct count) or the additional column with a 1 or zero allow me to visualise them in a simple bar chart.
First of all, before I query if I am trying to visualise them correctly. Is there a way to create a simple aggregate or measure in Power BI that will give me a total count of each product string over the two columns?