Forum Discussion
Cohort/Group comparisons
- 4 years ago
Hi rchappelle ,
This can be achieved using measures for example:
MAle = CALCULATE(AVERAGE( 'Table'[Priority]),'Table'[Gender] = "M") Female = CALCULATE(AVERAGE( 'Table'[Priority]),'Table'[Gender] = "F") Age 35 + = CALCULATE(AVERAGE( 'Table'[Priority]),'Table'[Age] >= 35) Location_ = CALCULATE(AVERAGE( 'Table'[Priority]),'Table'[Location] = "Leeds") Nationality Average = CALCULATE(AVERAGE( 'Table'[Priority]),'Table'[Nationality] in VALUES(Nationality[Nationality]))Then you can place it on a matrix and go to the options and turn on the option Show on Rows result below:
To make it dinamic you can create tables for slicers in this case I have done it for nationality and you can see based on the selection of the slicer the average gets calculated. You just need to do one for each of your variations.
PBIX file attach.
This is just one option depending on your model and needs you can do MGI, calculation groups and all sort of things.
Hi Moshood_AK ,
Without any data is difficult to give you a correct answer.
Please see this post regarding How to Get Your Question Answered Quickly (courtesy of @Greg_Deckler) and How to provide sample data in the Power BI Forum (courtesy of @ImkeF).
Leads table containing data i want compareuser table containing the users we will be comparing
- MFelix4 years agoSuper User
Hi Moshood_AK ,
The images are not very well perceived, can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.
If the information is sensitive please share it trough private message.- Moshood_AK4 years agoRegular Visitor
Leads
Company
Contact
Title
Sector
Ownerid
Amount
Az Group
Jude
Interested in S2
Agriculture
As34d-123hh5-q23wed
100000
Programmers
Tina
Purchase of S4
ICT
As34d-123hh5-q23wed
500000
IBIS
Toyin
4x4 truck
Hospitality
Hn45h-334hf6-y45uad
100000
Vento
Charles
12 seater bus
Furniture
Jjk90m-887lk9-n75mcd
300000
systemuser
Userid
Name
Title
Business unit
As34d-123hh5-q23wed
Steven
Sales executive, PV
Passenger vehicle
Hn45h-334hf6-y45uad
Tommy
Sales executive, LDT
Light duty truck
Jjk90m-887lk9-n75mcd
Moshood
Sales executive, LDT
Light duty truck
- Moshood_AK4 years agoRegular Visitor
Hi MFelix apologies for late response i have posted an example of what my tables look like