Forum Discussion
calculated row for matrix rows
- 8 years ago
Maggie,
Ffinally solved the problem as follows
Created three calculated columns which set a flag of 1
if the Data is Data1 and Value >0 1, 0
if the Data is Data2 and Value >0 1, 0
if the Data is Data3 and Value >0 1, 0
Then created a measure which when used in a matrix visualiation adds up the flags.
Then set a filter to show only iitems where the measure of the sum is < 3
This produces the desired matrix I gave as an example in the original question and only shows items where there is a missing required data value or one or more values is 0.
This is easily modified for any number of required data elements for a given row by adding more calculated flag columns and using them in the sum measure calculation then change the filter to 1 less than the total number of required data elements for each row.
Thanks for all the suggestions
Hi,
In the Query Editor, right click on the Item column and select "Unpivot other columns".
- dougjones8 years agoFrequent Visitor
Mr. Mathur, Not sure what to expect but recieved error that several fields were in conflict with the unpivot other columns command.
- Ashish_Mathur8 years agoSuper User
Never heard of that error. It just always works for me. Retry
- dougjones8 years agoFrequent Visitor
Mr. Mathur,
The table is a mix of numeric, date and string values for the columns (about 60)
Full error as follows:
DataSource.Error: Microsoft SQL: The type of column "MANUFACTURER" conflicts with the type of other columns specified in the UNPIVOT list.
Details:
DataSourceKind=SQL
DataSourcePath=.\uswsqlexpress;usw
Message=The type of column "MANUFACTURER" conflicts with the type of other columns specified in the UNPIVOT list.
Number=8167
Class=16This occured with several other columns which I removed from the query, but still end up with this error on a critical column to be included in the table.