Computed Sets Vs. LODs
Computed Sets Vs. LODs:
How Many Products are sold in Two Regions:
Using Sample Superstore Data Set:
Method 1:(Using Set)
Create a set ,Right click /Click on drop down of Product name then select create then click on Set.
Create set page is open .Give the name of set what you want to create.Now I create a set with name "Product in Two Region"
Go to Condition,Click on By field radio Button, then on drop down you needs to select "Region",Count(Distinct),=2.While Clicking on ok. "Product in two Region" set will be created.
Take the "Product in Two Region"set to rows shelf and Product name to column shelf.
Take the Product name to column shelf and on drop down of product name ,choose measure and select count(Distinct).
Method 2:(Using Fixed LOD expression)
How Many Products are sold in 1,2,3 or 4 Regions:
Sets only gives the In/Out.For that we use Fixed LOD expression:
Put the Product name to column shelf, on drop down select the measure ,then select the count(Distinct)
Create a calculated field for "Regions Per Product"
{ FIXED [Product Name]:COUNTD([Region])}
"Regions per product" calculated field create on measure section, just drag that field and on Dimension field.After that put that into Rows shelf.
If you want to percent of total then goto drop down of Count(Product Name) ,click on Quick table calculation then choose "Percent of Total".
If you want to see how many products are sold in 2 regions using fixed LOD then




Excellent
ReplyDelete