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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

dimension

i have 2 tables and i need to create a dimension form the column called " deaign Work package'

the tables

1. Actual Hours 

2. Actual Cost

i need a dimension from the values of these columns so i can  connect to them 

how to write the DAX code?

 

thanks

 

 

1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

@Anonymous this is the code for the calculated dimension table:

 

Design Work Package Dimension = 
DISTINCT(
    UNION(
        DISTINCT('Actual Hours'[Design Work Package]), 
        DISTINCT('Actual Costs'[Design Work Package])
    )
)

 


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

View solution in original post

1 REPLY 1
SpartaBI
Community Champion
Community Champion

@Anonymous this is the code for the calculated dimension table:

 

Design Work Package Dimension = 
DISTINCT(
    UNION(
        DISTINCT('Actual Hours'[Design Work Package]), 
        DISTINCT('Actual Costs'[Design Work Package])
    )
)

 


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.