Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
cromo
New Member

Date as a Value

Hi, 

I am trying to make a report where I have a Subject a score and the date of the test, 

 

So, I have my table

Subject_test:

Studentid SubjectID Subject Score Dateoftest

 

what I want to do is something similar to Pivot but i cant really add date as value what I want as a final imput is someting like this

                               SUBJECT 1

Student Id  || Subject 1 Score || Subject 1 Dateoftest ||....Subject N Score || Subject N Date of test||

 

I am able to add the score column since there are numbers but i cant add date column because it will count it.

 

 

can you help me with this?

 

thanks in advanced.

 

1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft Employee
Microsoft Employee

@cromo

 

The expected output looks kind of non-standard in my opinion. However you could follow the attached pbix to get it. You will duplicate one column and pivot twice in this case.

 

Capture.PNG

 



I am able to add the score column since there are numbers but i cant add date column because it will count it.

 


To avoid counting, you can apply another aggregate function like MAX or even not aggregated.

 

Capture.PNG

View solution in original post

2 REPLIES 2
Eric_Zhang
Microsoft Employee
Microsoft Employee

@cromo

 

The expected output looks kind of non-standard in my opinion. However you could follow the attached pbix to get it. You will duplicate one column and pivot twice in this case.

 

Capture.PNG

 



I am able to add the score column since there are numbers but i cant add date column because it will count it.

 


To avoid counting, you can apply another aggregate function like MAX or even not aggregated.

 

Capture.PNG

Greg_Deckler
Community Champion
Community Champion

Can you post some sample data?



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors