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
desiiirz
Regular Visitor

Percentile with 2 values

Hello,

 

I have one measure for the revenue :  CA HT = SUM(Ventes[Prix Vente HT])

Another for the previous year :           CA HT PY = CALCULATE([CA HT],SAMEPERIODLASTYEAR(Dates[Date]))

 

I tried : ((measure1 - measure2) / measure 2) * 100 but it didn't work

 

How can i calculate the percentile between the measure 1 and measure 2 ?

Ex        ((100 - 90) / 90) * 100 = 11,11%

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@desiiirz , I assume % not percentile

 

divide([M1] -[M2],[M2]) 

 

and mark that as % column

 

for percentile

Top 80/20 , percent /percentile
https://blog.enterprisedna.co/implementing-80-20-logic-in-your-power-bi-analysis/
https://forum.enterprisedna.co/t/testing-the-pareto-principle-80-20-rule-in-power-bi-w-dax/459

 

Power BI Window function- Pareto Analysis, 80% of sales, Order by on Measure: https://www.youtube.com/watch?v=UVxiLc_AzSs

Hello  @amitchandak  , yes it's % ! 

 

The measure seems to work, however the value seems odd, i have 0k% zfzfrfrzfrzf.PNG

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.