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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Raf_Joker
New Member

Need Help creating yes no fields

Hi Guys,

I have some data from Jira and I am trying to group some labels and show it against the issues table with a yes no column, however its producing yes and no results, meaning I have 2 rows per issues on each group I made.

 

I need it to be only 1 row in which if it contains that label I want it to say yes and if doesn't I want it to say no on 1 row as shown on my ideal screenshot.

 

How can I accomplish this?my attemptmy attemptideal outcomeideal outcomerelationship between tablesrelationship between tables

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @Raf_Joker ,

 

I am confused. What is exactly is your ideal outcome? The relationship view doesn't show how you want the data to be shown in  a visual.  If you want it to just show Yes per unique ISSUE_KEY, you can create a calculated column that counts the number of yes per ISSUE_KEY  and if that yes is more than 0 then return Yes for all the rows of that ISSUE_KEY. Sample formula

yes/no =
VAR YesCount =
    CALCULATE (
        COUNTROWS ( Labels ),
        Labels[Yes/No Column] = "Yes",
        ALLEXCEPT ( Labels, Labels[ISSUE_KEY] )
    )
RETURN
    IF ( _YesCount > 0 || _YesCount <> BLANK (), "Yes", "No" )




Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

2 REPLIES 2
danextian
Super User
Super User

Hi @Raf_Joker ,

 

I am confused. What is exactly is your ideal outcome? The relationship view doesn't show how you want the data to be shown in  a visual.  If you want it to just show Yes per unique ISSUE_KEY, you can create a calculated column that counts the number of yes per ISSUE_KEY  and if that yes is more than 0 then return Yes for all the rows of that ISSUE_KEY. Sample formula

yes/no =
VAR YesCount =
    CALCULATE (
        COUNTROWS ( Labels ),
        Labels[Yes/No Column] = "Yes",
        ALLEXCEPT ( Labels, Labels[ISSUE_KEY] )
    )
RETURN
    IF ( _YesCount > 0 || _YesCount <> BLANK (), "Yes", "No" )




Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Thank you, yes that has helped and will give me my desired outcome. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.