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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Create measure to compare value between 2 measures

Dear,

Please your help on below issue.

I created 2 measure below:

Measure 1: Calculate % by type of Sub-product

Type12345
Sub product10%15%25%30%20%

 

Measure 2: Calculte % by type with specific product:

ProductTypePercentage of each type
A15%
A225%
A330%
A430%
A510%
B15%
B215%
B315%
B420%
B545%

 

Now I want to compare data by type of each product with the correlative type in Sub-product.

Ex: Product A - Type 1: 5% - compare with Type 1 of sub-product: 10%

     Product B-Type 3: 15% - compare with Type 1 of sub-product: 25%

If %Sub-product Type 1 - % Product A Type 1 >5% => result = 1,

If %Sub-product Type 1 - % Product A Type 1 <-5% => result = 2

Otherwise, result = 0

 

Could you please advise how can I create a measure as below.

 

Thanks very much!

 

 

 

1 ACCEPTED SOLUTION

Hi @Anonymous  ,

 

This is the correct value, not the value in your previous screenshot.

V-lianl-msft_0-1615257624220.pngV-lianl-msft_1-1615257709521.png

Please refer to this sample pbix

 

Best Regards,
Liang
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

3 REPLIES 3
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

Unfortunately, I don't know your data model.

Can you provide some sample data based on your data model? It's better to share a sample pbix to let us know more about your scenario.

https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216 
Please remove any sensitive data before uploading.

 

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

Anonymous
Not applicable

Hi Liang,

Thanks for your feedback.

I'd like to share link for my pbix: 

https://drive.google.com/file/d/1jBDYT_4amHnZPhd6J_t_GyqojRwP8Qu3/view?usp=drivesdk 

 

And more details about the current issue:

Issue with measure.PNG

Appreciate your support, thanks a lot!

 

Hi @Anonymous  ,

 

This is the correct value, not the value in your previous screenshot.

V-lianl-msft_0-1615257624220.pngV-lianl-msft_1-1615257709521.png

Please refer to this sample pbix

 

Best Regards,
Liang
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 Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors