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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anubis0815
Frequent Visitor

Measurement Calculation based on different Buy-Types

Hi Community

 

I would like to create an Pacing% Measurement which calculates based on the related revenue type. For example:

 

Pacing% = IF(LineData[Revenue-Type]="VCPM";
DIVIDE([Helper:Viewable-Imps];[Expected Budget]);
IF(LineData[Revenue-Type]="CPC";
DIVIDE([Helper:TotalRevenue];[Expected Budget]);
IF(LineData[Revenue-Type]="CPCV";
DIVIDE([Helper:TotalRevenue];[Expected Budget]);0)
))
 
But this if statements don't work on measurements just on custom columns. But the results in columns are static and wrong.
Does someone of you have an idear how to solve this smart?
 
THX,
Christian
2 REPLIES 2
Mariusz
Community Champion
Community Champion

Hi @Anubis0815 

How about just use.

DIVIDE( [Helper:TotalRevenue]; [Expected Budget] )

Use LineData[Revenue-Type] as a table column or Slicer

Regards,
Mariusz

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

 

 

Hi Marisz,

 

yes that works but just for one case. But In my data I have a lot of variations "Revenue Types" which needs different calculations. That is the reason why I would like to use if statements but this seems is not working with measurements.

 

Best,

Christian

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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