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.
I have this set of dataset.I want to calculate average of brokerage_perecntage_of_gross_premium where end_cert=0 .Also exclude brokerage_perecntage_of_gross_premium <> 0.
I just calculate avg using measure...but excluding zero is not done..
Here is my measure
Solved! Go to Solution.
Ok, then try this one:
Measure =
CALCULATE (
AVERAGE('data'[brokerage...]),
FILTER('data, 'data'[brokerage_percentage_of_gross_premium <>0 && 'data'[endt_cert] = 0))
Hi, @NISHA_S
According to your description and sample data, I think you can achieve this using the Averagex() function, you can try this measure:
Average =
AVERAGEX(FILTER(ALLSELECTED('Table'),[brokerage_percentage_of_gross_premium]<>0&&[endt_cert]=0),[brokerage_percentage_of_gross_premium])
Then place the measure into a card chart, and you can get what you want.
You can download my test pbix file below
More info about the Averagex() function in DAX
Thank you very much!
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ok, then try this one:
Measure =
CALCULATE (
AVERAGE('data'[brokerage...]),
FILTER('data, 'data'[brokerage_percentage_of_gross_premium <>0 && 'data'[endt_cert] = 0))
Try this measure:
Measure =
CALCULATE (AVERAGE('data'[brokerage...]), 'data'[endt_cert] = 0)
For the calculation where endt_cert is not equal to zero just replace =0 by <> 0
i don't want to exclude endt_cert <>0 , i need to exclude only brokerage_percentage_of_gross_premium <>0 and include only endt_cert=0
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
83 | |
76 | |
65 |
User | Count |
---|---|
120 | |
111 | |
94 | |
83 | |
77 |