cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Partisan
Post Partisan

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

Accepted Solutions
Super User IV
Super User IV

@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))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

2 REPLIES 2
Super User IV
Super User IV

@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))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors