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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Creating a matrix in Power BI with measures and excel data

Hello Power BI Community,

 

i'm new to the forum and overall new to Power BI Desktop.
I didnt find the right post to my issue so i hope you can help me. If there is already a post with a solution to this, i apologize and would be glad if you can link it.

 

I have multiple measures created in Power BI using DAX and a standard calendar.

 

I placed the measures and years like this: 

Powerbinewbie22_1-1649146353136.png

 

and set the value setting to: 

Powerbinewbie22_2-1649146482081.png

 

that i receive that type of matrix: 

Powerbinewbie22_3-1649146534472.png

 

Now my question: Can i integrate a column with data out of excel and place it that i receive something like this? 

 

Powerbinewbie22_4-1649147264517.png

 

Thanks!

 

 

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

Hi @Anonymous ,

According to your description, here's my solution.

1.Add a row in the original column or create a new table like this:

Table 2 = UNION(VALUES('Table'[Year]),ROW("Year","Column"))

Get this column.

vkalyjmsft_0-1650016429510.png

2.Modify the measures like this:

Measure1 = IF(MAX('Table 2'[Year])="Column",111,123)

In your sample, you should change the 123  to the your original Measure1 formula.

In this way, modify other measures, get the expected result.

vkalyjmsft_1-1650016831269.png

I attach the sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, here's my solution.

1.Add a row in the original column or create a new table like this:

Table 2 = UNION(VALUES('Table'[Year]),ROW("Year","Column"))

Get this column.

vkalyjmsft_0-1650016429510.png

2.Modify the measures like this:

Measure1 = IF(MAX('Table 2'[Year])="Column",111,123)

In your sample, you should change the 123  to the your original Measure1 formula.

In this way, modify other measures, get the expected result.

vkalyjmsft_1-1650016831269.png

I attach the sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

 

Greg_Deckler
Super User
Super User

@Anonymous I think that would require a custom matrix hierarchy: (3) The New Hotness (Custom Matrix Hierarchy) - Microsoft Power BI Community


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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks @Greg_Deckler for your answer! 

 

I'm not quite sure, but i think i mean something different. 

Like the data out of the Excel column is related to each measure (DAX) of my matrix. 
For example: Measure1 equals 123 in each years. The new column from Excel should show the target value like 110. 

 

Each Measure has maybe different target values and i want them next to each measure as shown above. The main issue i have is that i can't get the excel file connected with the DAX measures right.
I dont even know if this is possible or not 😐

 

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.