Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Ignoring Relationships using CALCULATE

Data model is following:
1. Table JIRA_ISSUE - contains all JIRA items;

2. Table JIRA_SPRINT_CALENDAR - contains Sprint data (Start and Release dates)
3. Between these 2 tables, there is created Relationship (Many to One) JIRA_ISSUE[Sprint VersionID] <-> JIRA_SPRINT_CALENDAR[VersionID]

I need to get count of JIRA issues per Sprint Month. For example, if during the Feb-2019 there was 2 Sprints, I need to COUNT all items per month. Currently, problem is, that used measure is counting Jira issues per month & sprint (I suspect that it is due to existing RELATIONSHIP).
Please help with this measure:

EVALUATE
CALCULATE (
    COUNTROWS ( JIRA_ISSUE ),
    ALL ( JIRA_ISSUE ),
    JIRA_ISSUE[Issue Type] = "Story",
    JIRA_ISSUE[Status] <> "Story: Not Required",
    NOT ISBLANK ( JIRA_ISSUE[Sprint VersionID] ),
    FILTER (
        ALL ( JIRA_SPRINT_CALENDAR ),
        YEAR ( JIRA_SPRINT_CALENDAR[Release Date] )
            = YEAR ( MAX ( JIRA_SPRINT_CALENDAR[Release Date] ) )
            && MONTH ( JIRA_SPRINT_CALENDAR[Release Date] )
                = MONTH ( MAX ( JIRA_SPRINT_CALENDAR[Release Date] ) )
    )
)
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Issue was resolved by changing Data Model.

View solution in original post

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

 

Please try this measure:

EVALUATE
CALCULATE (
    COUNTROWS ( JIRA_ISSUE ),
    ALL ( JIRA_ISSUE ),
    JIRA_ISSUE[Issue Type] = "Story",
    JIRA_ISSUE[Status] <> "Story: Not Required",
    NOT ISBLANK ( JIRA_ISSUE[Sprint VersionID] ),
    ALLEXCEPT (
        JIRA_SPRINT_CALENDAR,
        YEAR ( JIRA_SPRINT_CALENDAR[Release Date] ),
        MONTH ( JIRA_SPRINT_CALENDAR[Release Date] )
    )
)

For more advice, please post sample data of JIRA_ISSUE and JIRA_SPRINT_CALENDAR, and show us your expected result. How to Get Your Question Answered Quickly

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Issue was resolved by changing Data Model.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors