Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm trying to create an additional measure within my Grid chart but all the values are coming back as 100% when trying to create it. The measure I'm adding should be a percentage of the total but it's just not working. Here is my expression and some screen shots to try and help
To work out the total items I'm using this simple expression...Count(distinct [Held Master ID]) really simple.
To then get the items with an additional product I'm using this...
Count(distinct {<
[Same Product Type Flag] = {'Cross Product Holding'}
>}[Held Master ID])
So to get the % of holdings, surely it's just...
Count(distinct {<
[Same Product Type Flag] = {'Cross Product Holding'}
>}[Held Master ID])
/
Count(distinct [Held Master ID])
This doesn't work though - everything is 100%. Any ideas are greatly appreciated
Hi! You forgot to add the screenshots.
I would try to add a table with an expression to check the value of Count(distinct [Held Master ID]), and manually select 'Cross Product Holding' on [Same Product Type Flag] field to check if the value changes.
If it doesn't changes something it's wrong with the relation between [Held Master ID] and [Same Product Type Flag], or with the values assigned to [Same Product Type Flag].
If the value changes I would try yo add an expression for "Count(distinct {<[Same Product Type Flag] = {'Cross Product Holding'}>}[Held Master ID])", remove selections and if the value it's the same, if it changes something it's wrong with set analysis, the field name or the value it's not exactly the same as the field or value loaded.
Another possibilities:
- Maybe each [Held Master ID] has a real and correct relation with the value 'Cross Product Holding', so in that case the 100% is correct.
- Dimensions or other selections are filtering values so all the remaining values has a relation with the value 'Cross Product Holding', so in that case the 100% is correct... or maybe you need to use TOTAL to ignore some dimensions or add fields to the set analysis to ignore some selections
May be
Count(distinct {<[Same Product Type Flag] = {'Cross Product Holding'}>}[Held Master ID])
/
Count(distinct Total [Held Master ID])