
Anonymous
Not applicable
2018-05-23
02:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Need If statement to calculate based on dimension to the left
Hi,
I have a table that I need to calculate based on the dimension on the left of the table. The two dimensions are from an inline load I am doing called "Grouping". Below is the table:
I need the measuers for Orders(000), Sales(000) and PTQ calculate based on the dimension being MTD or Prior Day. Below is the analyisis I was using.
if(Grouping='MTD',
Sum({<
[Fiscal - Flag Current Date]='Y'
>}
[Amount - Ordered USD])
,
Sum({<
[Fiscal - Flag Current PTD]='Y'
>}
[Amount - Ordered USD]))
However, this is just returning zeros. How can I get this measure to identify and consider the dimension in the corresponding column?
Thanks!
468 Views
1 Solution
Accepted Solutions

Luminary
2018-05-23
02:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are missing the curly brackets in the set statements: {'Y'}
vizmind.eu
416 Views
1 Reply

Luminary
2018-05-23
02:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are missing the curly brackets in the set statements: {'Y'}
vizmind.eu
417 Views
