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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Power Bi - Measured column

I have 3 tables, each one is a parent of other.

 

Initiative-->Epic -->Feature

 

All these tables have a column named "Status".

The column "status" has 2 values "Done" or "Inprogress"

 

I need a card which shows the completion status in % of a epic.

 

For example, a epic has 4 features, out of these, 2's status is "Done" and remaining 2's status is "Inprogress".

 

So, in card it should show as 50% of a selected epic

 

karthick4198_0-1667562661363.png

Kindly help me here,

Thanks in advance

2 ACCEPTED SOLUTIONS
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

Sorry, still not very clear. Could you go into more detail and provide some simple sample data and the corresponding expected results? Thank you.

Which state do you want to calculate the percentage?

percentage = var _totalgroupbyepic=COUNTROWS(FILTER(ALLSELECTED('Table'),[epic]=MAX('Table'[epic])))
var _count=COUNTROWS(FILTER(ALLSELECTED('Table'),[status]="Done"&&[epic]=MAX('Table'[epic])))
return DIVIDE(_count,_totalgroupbyepic)

vstephenmsft_0-1667813549701.png

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Anonymous
Not applicable

Hi @v-stephen-msft ,

Your solution is right. 

Thank you for your reply : )

 

View solution in original post

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

Sorry, still not very clear. Could you go into more detail and provide some simple sample data and the corresponding expected results? Thank you.

Which state do you want to calculate the percentage?

percentage = var _totalgroupbyepic=COUNTROWS(FILTER(ALLSELECTED('Table'),[epic]=MAX('Table'[epic])))
var _count=COUNTROWS(FILTER(ALLSELECTED('Table'),[status]="Done"&&[epic]=MAX('Table'[epic])))
return DIVIDE(_count,_totalgroupbyepic)

vstephenmsft_0-1667813549701.png

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @v-stephen-msft ,

Your solution is right. 

Thank you for your reply : )

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors