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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
KubenM
Advocate II
Advocate II

How do I show a Project Size; Project Count, and Total Story Points per Project Size on one Power Bi

Hello
How to I show a Project Size; Project Count per Size, and Total Story Points per Project Size on one Power Bi Visual?

Example:
I have 3 Project sizes i.e. Small, Medium, and large. These values are visible in one column in my data set.
I created a Lookup table to define the number of Story Points that each project size would equate to.
Project Story Points Definition:
Small = 50
Medium = 100
Large = 150

If I have 2 small projects; 1 medium project, and 3 large projects to complete in Year 2022, how do I show the number of projects per size and the total Story per size. ie. 2 x Small = 100; 1 x Medium = 100; 3 x Large = 450 on one Power Bi visual in year 2022.
In year 2023 I will need to show the same and so on.

I would really appreciate your assistance in this regard. My DAX knowledge in near to non-existent.
Thank you
Kuben

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

Hi @KubenM ,

 

Like this?

vmengzhumsft_0-1669885482408.png

Just create a measure to count rows and a column to calculate total value, as the following shows:

countrows = CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'),'Table'[item]=SELECTEDVALUE('Table'[item])))
Total = 'Table'[value]*[countrows]

You can also refer to my pbix file for better understanding.

 

Best regards,

Community Support Team Selina zhu

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

Thank you for your time and effort in this regard Selina.

View solution in original post

4 REPLIES 4
KubenM
Advocate II
Advocate II

Dear All, Thank you for the feedback received in this regard. I will try the options suggested. Much appreciated.

v-mengzhu-msft
Community Support
Community Support

Hi @KubenM ,

 

Like this?

vmengzhumsft_0-1669885482408.png

Just create a measure to count rows and a column to calculate total value, as the following shows:

countrows = CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'),'Table'[item]=SELECTEDVALUE('Table'[item])))
Total = 'Table'[value]*[countrows]

You can also refer to my pbix file for better understanding.

 

Best regards,

Community Support Team Selina zhu

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

Thank you for your time and effort in this regard Selina.

amitchandak
Super User
Super User

@KubenM , You need somung like

 

concatenatex (values(table[Project]) , calculate([Count meausre] & " " & Max(table[Project]) & " " & [Other measure], " ; ")

 

 

You can use unichar(10)  for the new line. You can display it on card visual

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

Top Solution Authors