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
barbaratate
New Member

Create a Calculated/Filtered table with DAX

Hi all

 

Firstly, I am a PowerBi Novice - one 'Dashboard in a Day' course and a lot of tinkering.

I'm happy to read and experiment around what I want to do - my query is not how to do it but if it is possible in the first place!! I don't want to invest hours in discovering that I can't do it and I need to find a different way!

 

My tables have students, details, attendance, subjects, school terms and marks - what I need to do is reorganise the contents of one of the tables. The tables are all related by Student ID

The source table has the student marks as multiple rows per student, the table I need has the same information in a single row for each student.

 

The source table is:

Student IDStudent nameSubjectTermResult
s1MaryEnglish Autumnd
s1MaryEnglish Springs
s1MaryMathsAutumnd
s1MaryMathsSprings
s2JohnEnglish Autumns
s2JohnEnglish Springs
s2JohnMathsAutumns
s2JohnMathsSpringm

 

The table I need is

Student IDStudent nameEnglish AutumnEnglish SpringMaths AumnMaths Spring
s1Marydsds
s2Johnsssm

 

The requirement is then to analyse by grades for different groups of students (eg those who are below an absence threshold), which I can do with the second table but not the first.

 

So my question is, is what I want to acheive possible with DAX?

 

Thanks in advance - and apologies if the question has already been asked!

B

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @barbaratate ,

 

Based on my test, that could not be achieved by dax. I suggest to use power query to have a try.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @barbaratate ,

 

Based on my test, that could not be achieved by dax. I suggest to use power query to have a try.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Thank you.

 

Thank you - that's the problem with not knowing what you can do - it's not knowing what you CAN'T do as well!

 

Barbara

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.