cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Calculated dimensions based on several objects

SofieH
Discoverer
0 Likes
653

I have a report with OrderIDs and related boolean dimensions for each order. I want to create a calculated dimension counting the boolean results for each dimension/object. Is this even possible in webi or do we need to modify the Universe?
I have this:

SofieH_0-1725353566738.png

and I want to calculate it like this:

 

SofieH_1-1725353566653.png

Because the end users want it to look like this in the report:

SofieH_2-1725353566771.png

Any suggestions how to do this?
Regards,
Sofie H

Accepted Solutions (0)

Answers (1)

Answers (1)

LGCA
Discoverer
0 Likes

Hi, Sofie.

With a little creativity, this is possible in Webi.

If you needed only a simple table (no charts), then you could do a crosstab with simple text labels and variables for each of the counts in the body. The structure would look like this:

LGCA_1-1725643133788.png

And the first two formulas would be (with the others following the same model):
[Scanned Bracelet - Yes]=Sum(If [Scanned bracelet] = "1" Then 1)
[Scanned Bracelet - No]=Sum(If [Scanned bracelet] = "0" Then 1)

But because you want charts in the report, you must define more variables and create three crosstabs, which you can juxtapose in the report to make them look like a single crosstab (by hiding the top row of the lower crosstabs). Their structures would look like:

LGCA_2-1725643330782.png

And the first few formulas would be:
[vScanned Bracelet]="Scanned Bracelet"
[vScanned Bracelet YN]=If [Scanned bracelet] = "1" Then "Yes" Else "No"
[Count ID]=Count([Ordinations-ID])

You then copy each of the blocks, turn them into column charts, and place them in the report, customizing the display of axes and legends to get to your final display:

LGCA_3-1725643760917.png

Good luck!
Luis