cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
bobbybamber
Frequent Visitor

Calculation from within a table

screenshot.39.jpg


Hi guys,


Quick one - but above is a sample table. "Online" being the primary category/field then we've got two products sat within it.

Due to the way we bid, automatically assigning spend between the two products isn't possible. However, I wondered if there was a way of creating a calculated measure that could do that for me. I.e - if we wanted to assign spend proportionally across the two products depending on the number of leads generated for each product.

Is it possible to create a measure that would multiply the leads from each product (e.g. 8 and 921) by the total CPL (in this case £33.54). The table doesn't necessarily need to do it cleanly - I'd just like a new column that said:

Adjusted Spend
£31,158.24 (e.g. the total for online)
£268.32 (e.g. the blue row: 8x33.54)
£30,890.34 (e.g. the red row: 921x33.54)
£31,158.24 (same as the top, basically the total).

In my head this should be impossible but I wanted to rule it out first.... anyone come up with a way of doing it?

1 ACCEPTED SOLUTION

Hi @v-yuezhe-msft,

£33.54 is 31,158.24 / 929...

How would I easily share a sample of data? There's a lot of it...

View solution in original post

2 REPLIES 2
v-yuezhe-msft
Microsoft
Microsoft

@bobbybamber,

You create a Matrix visual using the data from your original table, could you please share sample data of your original table? I am curious about that how you get a 33.54 total value for CPL.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-yuezhe-msft,

£33.54 is 31,158.24 / 929...

How would I easily share a sample of data? There's a lot of it...

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors