# Compare Issue Property vs all other Issues

**URL:** <https://community.eazybi.com/t/compare-issue-property-vs-all-other-issues/10965>\
**Category:** Questions & Answers\
**Tags:** jira, calculatedmembers\
**Created:** [November 9, 2022, 8:33pm UTC](https://community.eazybi.com/t/compare-issue-property-vs-all-other-issues/10965 "2022-11-09T20:33:20Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dEEE](https://community.eazybi.com/user_avatar/community.eazybi.com/deee/32/8373_2.png) [@dEEE](https://community.eazybi.com/u/dEEE)\
**Post date:** [November 9, 2022, 8:33pm UTC](https://community.eazybi.com/t/compare-issue-property-vs-all-other-issues/10965/1 "2022-11-09T20:33:20Z")

</div>

Hi all,

I am trying to understand how to obtain a set (or a count) of issues that have the same value as that of a given row in rows with issues.

For example, I have all issues in rows, and wanted to display a Measure that describes the count of all issues that have the same value for a custom field (which is imported as an issue property).

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![VasileS](https://community.eazybi.com/user_avatar/community.eazybi.com/vasiles/32/4882_2.png) [@VasileS](https://community.eazybi.com/u/VasileS)\
**Post date:** [November 11, 2022, 11:23am UTC](https://community.eazybi.com/t/compare-issue-property-vs-all-other-issues/10965/2 "2022-11-11T11:23:16Z")

</div>

Hello @dEEE !

See this: [Getting the count of specific value in given field](https://community.eazybi.com/t/getting-the-count-of-specific-value-in-given-field/4088)

There are several methods to count (aggregate, count, filter, tuples…), they’re nicely described in the topic above.

Hope it helps!  
Regards,  
Vasile S.

---

<div class="post-metadata">

**Author:** ![dEEE](https://community.eazybi.com/user_avatar/community.eazybi.com/deee/32/8373_2.png) [@dEEE](https://community.eazybi.com/u/dEEE)\
**Post date:** [November 11, 2022, 4:12pm UTC](https://community.eazybi.com/t/compare-issue-property-vs-all-other-issues/10965/3 "2022-11-11T16:12:12Z")

</div>

hi @VasileS, thanks for the quick response.

The issue I am having is on the comparison for the given row’s Requirement Number in the example shown vs the Requirement Number of all other issues. Evaluating [Measures].[Issue Requirement Number] vs [Issue].CurrentHierarchyMember.GetString(‘Requirement Number’) is not correct as it appears to simply be evaluating against itself and I need the criteria to be dynamic per the row number, and not static (e.g. commented comparison).

Any thoughts? The image shows an example of the desired result.

> Count(  
> Filter(  
> Descendants([Issue].[Issue].Members, [Issue].[Issue]),  
> [Issue].CurrentHierarchyMember.GetString(‘Requirement Number’) = [Measures].[Issue Requirement Number]  
> –“S.2.x.2” = [Issue].CurrentMember.GetString(‘Requirement Number’)  
> –“S.2.x.2” = [Issue].CurrentHierarchyMember.GetString(‘Requirement Number’)  
> )  
> )

 ![iterations](https://community.eazybi.com/uploads/default/original/2X/1/1af8ef3bb136eba24c12dde1bcaa30cde2697257.png)

---

<div class="post-metadata">

**Author:** ![oskars.laganovskis](https://community.eazybi.com/user_avatar/community.eazybi.com/oskars.laganovskis/32/5902_2.png) [@oskars.laganovskis](https://community.eazybi.com/u/oskars.laganovskis)\
**Post date:** [November 21, 2022, 5:17pm UTC](https://community.eazybi.com/t/compare-issue-property-vs-all-other-issues/10965/4 "2022-11-21T17:17:37Z")

</div>

Hi @dEEE,  
​  
​Would you consider importing the custom field as a dimension?  
​That would allow using the imported dimension to split the issues by the value of that custom field.  
​  
​Then you might use the [Tuple](https://docs.eazybi.com/eazybi/analyze-and-visualize/calculated-measures-and-members/mdx-function-reference/tuple) to slice the dataset by the specific value of the field or use the dimension on report rows or columns together with a relevant measure.  
​  
​Please see below the example of a tuple that finds the number of issues with the current Requirement Number “S.2.x.2” within the current report context if Requirement Number is imported as a dimension.  
​

```auto
([Requirement Number].[S.2.x.2],
 [Measures].[Issues created])

```

If that does not fit you, please explain what do you mean by

> “I need the criteria to be dynamic per the row number”

​Regards,  
Oskars / [support@eazyBI.com](mailto:support@eazyBI.com)

---

<div class="post-metadata">

**Author:** ![dEEE](https://community.eazybi.com/user_avatar/community.eazybi.com/deee/32/8373_2.png) [@dEEE](https://community.eazybi.com/u/dEEE)\
**Post date:** [December 2, 2022, 5:36pm UTC](https://community.eazybi.com/t/compare-issue-property-vs-all-other-issues/10965/5 "2022-12-02T17:36:32Z")

</div>

Hi @oskars.laganovskis ,

I have to reach out to the admins to confirm if the custom field can be imported as a dimension, as I am only currently able to select import as a property.

What I meant by “I need the criteria to be dynamic per the row number” was that I want to show the count of matching Requirement Number for that given issue on the report results rather than specifying a static string to match. Is this possible?

---

<div class="post-metadata">

**Author:** ![oskars.laganovskis](https://community.eazybi.com/user_avatar/community.eazybi.com/oskars.laganovskis/32/5902_2.png) [@oskars.laganovskis](https://community.eazybi.com/u/oskars.laganovskis)\
**Post date:** [December 5, 2022, 12:23pm UTC](https://community.eazybi.com/t/compare-issue-property-vs-all-other-issues/10965/6 "2022-12-05T12:23:47Z")

</div>

Hi @dEEE,

If you want to be able to change the “Requirement number” in scope, you might use the imported dimension on the Page filters or the report Rows.

Regards,  
Oskars / [support@eazyBI.com](mailto:support@eazyBI.com)

---

<div class="post-metadata">

**Author:** ![dEEE](https://community.eazybi.com/user_avatar/community.eazybi.com/deee/32/8373_2.png) [@dEEE](https://community.eazybi.com/u/dEEE)\
**Post date:** [December 8, 2022, 7:56pm UTC](https://community.eazybi.com/t/compare-issue-property-vs-all-other-issues/10965/7 "2022-12-08T19:56:50Z")

</div>

Hi @oskars.laganovskis ,

As I work with the admin to see if a “Label Manager” field type can be imported as a dimension, is importing “Requirement Number” as a dimension the only solution or is there an alternative with only importing as a property?

---

<div class="post-metadata">

**Author:** ![oskars.laganovskis](https://community.eazybi.com/user_avatar/community.eazybi.com/oskars.laganovskis/32/5902_2.png) [@oskars.laganovskis](https://community.eazybi.com/u/oskars.laganovskis)\
**Post date:** [December 9, 2022, 8:44am UTC](https://community.eazybi.com/t/compare-issue-property-vs-all-other-issues/10965/8 "2022-12-09T08:44:42Z")

</div>

Hi @dEEE,

Importing custom field as a dimension is the most straightforward and efficient option to allow the report or dashboard user change the selection in the Page filters.  
Workarounds might include creating calculated measures that iterate through the Issue dimension and then moving the Measures dimension to the Page filter. Although, they might work at the beginning, soon you would call for a faster or more efficient option unless you work on a very small dataset.

Regards,  
Oskars / [support@eazyBI.com](mailto:support@eazyBI.com)

---

<div class="post-metadata">

**Author:** ![dEEE](https://community.eazybi.com/user_avatar/community.eazybi.com/deee/32/8373_2.png) [@dEEE](https://community.eazybi.com/u/dEEE)\
**Post date:** [December 9, 2022, 5:59pm UTC](https://community.eazybi.com/t/compare-issue-property-vs-all-other-issues/10965/9 "2022-12-09T17:59:51Z")

</div>

hi @oskars.laganovskis ,

Would you mind sharing how that would be done? I had the same thought process in looking to loop through all issues for each Row in example above, but not sure how that is actually done.

---

<div class="post-metadata">

**Author:** ![oskars.laganovskis](https://community.eazybi.com/user_avatar/community.eazybi.com/oskars.laganovskis/32/5902_2.png) [@oskars.laganovskis](https://community.eazybi.com/u/oskars.laganovskis)\
**Post date:** [December 12, 2022, 12:04pm UTC](https://community.eazybi.com/t/compare-issue-property-vs-all-other-issues/10965/10 "2022-12-12T12:04:19Z")

</div>

Hi @dEEE,

The main problem in your case is that the MDX only allows one CurrentHierarchyMember, and you cannot reach a member from the same hierarchy and level from a higher iteration level.

The workaround is to address the same issue through another hierarchy.  
This workaround might be limited to one “secondary” hierarchy level.

Please see below an example of switching to the Epic hierarchy to save the initial issue and iteration through the standard hierarchy within the Issue dimension. This expression would only retrieve the number of issues with the same “Requirement number” for parent level issues.

```auto
NonZero(
Sum(
--saving the current row issue to another hierarchy
  [Issue.Epic].[Parent].GeTMemberbyKey(
    [Issue].CurrentHierarchyMember.Key),
--actually counting issues    
 Count(
  Filter(
--all issues
   [Issue].[Issue].Members,
--comparing value of current issue in iteration
   [Issue].CurrentMember.GetString('Requirement Number')
   = 
--against the value of the initial issue - retrieving from different hierarchy
   [Issue.Epic].CurrentMember.GetString('Requirement Number')
  )
 )
))

```

Reards,  
Oskars / [support@eazyBI.com](mailto:support@eazyBI.com)

---

<div class="post-metadata">

**Author:** ![dEEE](https://community.eazybi.com/user_avatar/community.eazybi.com/deee/32/8373_2.png) [@dEEE](https://community.eazybi.com/u/dEEE)\
**Post date:** [December 22, 2022, 5:02pm UTC](https://community.eazybi.com/t/compare-issue-property-vs-all-other-issues/10965/11 "2022-12-22T17:02:03Z")

</div>

Thanks @oskars.laganovskis , worked perfectly!
