cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mvi
Regular Visitor

Please help a newbie with very simple static table

Hi there,

 

I am very new to Power BI and need to create a report that displays the following table:

 

------------------------------------------------------
|   Cohort       |       ABC       |         XYZ     |
------------------------------------------------------
|   Measure      | Fam | Sib |Total| Fam | Sib |Total|
------------------------------------------------------
|   Value        |100  |200  | 300 | 400 | 500 | 900 |
------------------------------------------------------

 

Everything in this table is static except for the 100, 200, 300, 400, 500, values in the last row. These values will come from measures. I believe I know how to create the measures by using DAX. I would appreciate any pointers on what stuff to read to be able to develop this very simple report.

 

Thank you!

3 ACCEPTED SOLUTIONS
Phil_Seamark
Microsoft
Microsoft

HI @mvi 

 

One approach is to model your data like this

 

image.png

 

and then you can configure the matrix visual like this

 

image.png

 

Here is a PBIX File for you to try : https://1drv.ms/u/s!AtDlC2rep7a-xiyUQSVxIhW5uZeQ?e=QS3s71

 

 

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

v-diye-msft
Community Support
Community Support

Hi @mvi 

 

Not quite understand your requirement. Do you mean the Value should be a measure rather than a column? It doesn't matter. you can replace the field with measure, such as:

8.PNG

Community Support Team _ Dina Ye
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

v-diye-msft
Community Support
Community Support

Hi @mvi 

 

You can double click the column name in the filed as below:

000.PNG

Please kindly mark my answer as a solution if it helps, thanks a lot!

 

Community Support Team _ Dina Ye
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

5 REPLIES 5
Phil_Seamark
Microsoft
Microsoft

HI @mvi 

 

One approach is to model your data like this

 

image.png

 

and then you can configure the matrix visual like this

 

image.png

 

Here is a PBIX File for you to try : https://1drv.ms/u/s!AtDlC2rep7a-xiyUQSVxIhW5uZeQ?e=QS3s71

 

 

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

Thanks Phil!

How do I replace the 100 and 200 values with actual counts (measures) from my SQL Server database?

Thanks again!

v-diye-msft
Community Support
Community Support

Hi @mvi 

 

Not quite understand your requirement. Do you mean the Value should be a measure rather than a column? It doesn't matter. you can replace the field with measure, such as:

8.PNG

Community Support Team _ Dina Ye
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

Thank you!

 

One last question: how to I change column captions in the table, such as "ValueMeasure"?

v-diye-msft
Community Support
Community Support

Hi @mvi 

 

You can double click the column name in the filed as below:

000.PNG

Please kindly mark my answer as a solution if it helps, thanks a lot!

 

Community Support Team _ Dina Ye
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

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.