The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello, seek for help!
Sample data for two cycles (Jan to June and July to Dec):
comp A, jan to jun, proj L, score 80, rating 1
comp B, jan to jun, proj L, score 70, rating 2
comp A, jul to dec, proj L, score 70, rating 2
comp B, jul to dec, proj L, score 84, rating 1
comp A, jan to jun, proj K, score 65, rating 3
comp A, jul to dec, proj K, score 50, rating 4
comp C, jan to jun, proj K, score 45, rating 5
comp C, jul to dec, proj K, score 55, rating 4
Q1: Average score of respective companies.
Q2: Average rating of respective companies regardless of project names. comp C be shown when press rating 5 at slicer. A will be under rating 3 (average of 80+70+65+50=65). comp B will be shown under rating 2. results i got - comp A shown under rating 1,2,3,4
Q3: Number of projects under respective companies
Hi @Sal922 ,
The sentence after the second condition is not very clear, whether you can express the desired result you want in the form of pictures, we can better help you
Here are the steps you can follow:
1. Create measure.
Average score of respective companies =
AVERAGEX(
FILTER(ALL('Table'),
'Table'[Com]=MAX('Table'[Com])),[Score])
Average Rating =
AVERAGEX(
FILTER(ALL('Table'),
'Table'[Com]=MAX('Table'[Com])),[rating])
Number of projects under respective companies =
CALCULATE(
DISTINCTCOUNT('Table'[proj]),
FILTER(ALL('Table'),
'Table'[Com]=MAX('Table'[Com])))
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
User | Count |
---|---|
16 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
23 | |
13 | |
13 | |
8 | |
8 |