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
harirao
Post Prodigy
Post Prodigy

Need to create a DAX by using Percentage

Hello All,

 

Required your assistance, i want to create measure for percentage calculation used Distinctcount, filter & sumx not getting correct result.
Measure1:

< No_Visibility_#Deals = CALCULATE(DISTINCTCOUNT(tbl_dep3_big_deal_perf_data_final_main[OpportunityId]),
FILTER(tbl_dep3_big_deal_perf_data_final_main, tbl_dep3_big_deal_perf_data_final_main[actual_visibility_Weeks]=0))
Measure2:
<No Visibility = SUMX(DISTINCT(tbl_dep3_big_deal_perf_data_final_main[Delivery Priority Code]),[< No_Visibility_#Deals])


In below screenshot, i have used %GT option for 3rd column which is giving correct result, (Total is 15where discount of OppId/ total 1/15(7%).
In last columns % is calculated on total which is 20 (1/20=5%), i want to create dax based on 2nd column that is discount  total
10_1.PNG
Thanks in advance for your help.

 

Regards,

Hari 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@harirao , Not very clear .

You can create % of tota with a measure like

 

divide([discount], calculate([discount], all(Table))

divide([discount], calculate([discount], allselected(Table))

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi , @harirao 

Could you please tell me whether your problem has been solved?
If yes, you could accept the helpful answer as solution. You also could share your own solution here. For now, there is no content of description in the thread. If you still need help, please share more details to us.

 

Best Regards,
Community Support Team _ Eason

amitchandak
Super User
Super User

@harirao , Not very clear .

You can create % of tota with a measure like

 

divide([discount], calculate([discount], all(Table))

divide([discount], calculate([discount], allselected(Table))

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.