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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

Reply
krist_pbi
Frequent Visitor

Hierachy within metrics

Hey

 

I'm building a weekly scorecard and need the following:

 

I'd like to show weekly let's say conversion rate, but in the drill down show the two variables that are connected to the conversion rate ( clients in one row, and leads in the next row below) which are the variables to calculate the conversion rate, I need to replicate this for all the metrics I have, but the logic would be the same

 

Any thoughts on this? 

1 REPLY 1
v-yohua-msft
Community Support
Community Support

Hi, @krist_pbi 

I create a sample table:

vyohuamsft_0-1727922767301.png

Then create a new measure and calculated column, here is DAX expression.

Measure:

Conversion Rate = DIVIDE(SUM('Table'[Clients]), SUM('Table'[Leads]), 0)

Column:

Week Start = 'Table'[Date] - WEEKDAY('Table'[Date], 2) + 1

vyohuamsft_1-1727922928412.png

 

Put fields in matrix visual, here is my preview:

vyohuamsft_2-1727923026505.png

 

How to Get Your Question Answered Quickly

Best Regards

Yongkang Hua

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

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

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.