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
Presti73
Frequent Visitor

Count problem

Hello everybody,

 

I am farely new to PBI and am trying to solve a problem for some days now. I can't imagine anymore what i haven't tried, measures, (DAX) and (M) formulas, distinctcount, duplicate tables, reference tables, but nothing seems to work and i can't find a solution.

I have a table with numerous colums. De table is being updated regularly and the number of rows are growing.

The table consists of a questionary with only 4 possible answers. However the questionary itself has around 25 question.

What i need to get is this:

 

BEOCount.png

The date field is only for filtering.

Can anybody help me do this?

Thanx in advance!

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi @Presti73 , 

You could try to transform data structure, choose Q1~Q5 columns, then click "unpivot column" in Edit Queries, and use this in Matrix, you will get result you want. You could refer to my sample for details.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
dax
Community Support
Community Support

Hi @Presti73 , 

You could try to transform data structure, choose Q1~Q5 columns, then click "unpivot column" in Edit Queries, and use this in Matrix, you will get result you want. You could refer to my sample for details.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Presti73
Frequent Visitor

Thank you both for your solution!

The unpivoted columns did the trick. Keeping columns in on wich filters could be based, made it very versatile and usable on all visuals.

Greg_Deckler
Super User
Super User

Seems like you need a multi-column aggregation: https://community.powerbi.com/t5/Quick-Measures-Gallery/Multi-Column-Aggregations-MC-Aggregations/m-...


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.

Top Solution Authors
Top Kudoed Authors