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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Add descriptive Statistical measures

Is it was possible to create a table that looks like this in PowerBi

 

January 2018

February2018

March2018

April2018

Average

10

11

10

9

Median

9

12

8

7

1st Quartile

4

6

5

5

 

And the data that we have looks like this:

January2018Counts

February2018Coutns

March2018Counts

April2018Counts

3

3

4

4

4

6

5

5

6

7

8

6

9

12

8

7

12

12

10

9

16

17

16

12

20

19

19

17



2 ACCEPTED SOLUTIONS
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

Firstly, in query editor, click unpivot columns, then you will achieve the Attribute and Value columns. After applied&close, create three measures using dax below:

Average = CALCULATE(AVERAGE('Table'[Value]), ALLEXCEPT('Table', 'Table'[Attribute]))
Median = CALCULATE(MEDIAN('Table'[Value]), ALLEXCEPT('Table', 'Table'[Attribute]))
1st Quartile = CALCULATE(PERCENTILE.EXC('Table'[Value], 0.25), ALLEXCEPT('Table', 'Table'[Attribute]))

The result will be like below:

Capture.PNG  

 

You can also refer to the pbix file.

 

Community Support Team _ Jimmy Tao

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

Anonymous
Not applicable

I Used below solution and that helped :

Built the measures needed and put them in the ‘values’ on the matrix along with the date in the ‘columns’. Then selected the setting called ‘Show on rows’ in the values settings on the matrix.

 

 
 
 
 

View solution in original post

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

Firstly, in query editor, click unpivot columns, then you will achieve the Attribute and Value columns. After applied&close, create three measures using dax below:

Average = CALCULATE(AVERAGE('Table'[Value]), ALLEXCEPT('Table', 'Table'[Attribute]))
Median = CALCULATE(MEDIAN('Table'[Value]), ALLEXCEPT('Table', 'Table'[Attribute]))
1st Quartile = CALCULATE(PERCENTILE.EXC('Table'[Value], 0.25), ALLEXCEPT('Table', 'Table'[Attribute]))

The result will be like below:

Capture.PNG  

 

You can also refer to the pbix file.

 

Community Support Team _ Jimmy Tao

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

Anonymous
Not applicable

I Used below solution and that helped :

Built the measures needed and put them in the ‘values’ on the matrix along with the date in the ‘columns’. Then selected the setting called ‘Show on rows’ in the values settings on the matrix.

 

 
 
 
 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors