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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ack2mani
Frequent Visitor

Calculated measure can be used to join another table

Hi Friends,

 Can we use a calculated measure in a table to join another table in Power BI?  If yes plz help me out ASAP

 

Thanks! in Advance

4 REPLIES 4
v-juanli-msft
Community Support
Community Support

Hi @ack2mani

What final result do you want? a table or a column?

If you want to get a table finally, you need to create a new table instead of a measure.

Besides, you can create a virtual table in a measure and use this table to calculate the final result of this measure, like

measure= VAR table1=SUMMARIZE(ALL(sheet1),[Column1])
 Return CALCULATE(SUM([Column1]),ALL(table1))

Functions you need to consider

VAR

Indetify variables

UNION

Creates a union (join) table from a pair of tables

CROSSJOIN

Returns a table that contains the Cartesian product of all rows from all tables in the arguments

SUMMARIZE

Returns a summary table for the requested totals over a set of groups

 

Best Regards

Maggie

jthomson
Solution Sage
Solution Sage

You could probably use DAX to create a temporary table using the measure, but it'd probably be messy and maybe not an ideal solution if you're wanting to use the new table in several places - I'd try to recreate the measure in Power Query if at all possible

Thanks @jthomson Plz let me know if possible

@ack2mani,

 

We won't know if it's possible until you give us a better idea of what you're trying to do. Can you share some data, your specific goal, and the expected result?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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