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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Sindhu_RM
New Member

Union data - Create new table / common table for different data set output

Hi all,

 

I am stuck with a report , where I have below representation of data .

Sindhu_RM_0-1716384405965.png

 

Above 4 Table comes from different dataset , Customer wants to see as combined value whereas there is no common connecting factor .

Here continent is being connected with a country dimension table via lookup.

All the percentage values are measure which are calculated in runtime.

Another challenging part is we have visual level filter for each visual applied too.

This page also has a "created on" Date filter. Each data set has their own date column.

 

Customer wants to see the Continent name and percentages as like below ,

Sindhu_RM_1-1716384806622.png

 

Kindly assist , How this can be solved.

 

Thanks in advance.

 

 

 

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

Hi @Sindhu_RM ,

 

A similar effect can be achieved by creating a calculated table and adding a calculate filter through the dax function. Refer to below formula:

Table =
SUMMARIZECOLUMNS (
    FactTable[Position],
    "result1", CALCULATE ( SUM ( FactTable[Value] ), FactTable[Category] = "a" ),
    "result2", CALCULATE ( SUM ( FactTable[Value] ), FactTable[Category] = "b" ),
    "result3", CALCULATE ( SUM ( FactTable[Value] ), FactTable[Category] = "c" ),
    "result4", CALCULATE ( SUM ( FactTable[Value] ), FactTable[Category] = "d" )
)

vkongfanfmsft_0-1716430701452.png

 

vkongfanfmsft_1-1716431026018.png

Best Regards,
Adamk Kong

 

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

1 REPLY 1
v-kongfanf-msft
Community Support
Community Support

Hi @Sindhu_RM ,

 

A similar effect can be achieved by creating a calculated table and adding a calculate filter through the dax function. Refer to below formula:

Table =
SUMMARIZECOLUMNS (
    FactTable[Position],
    "result1", CALCULATE ( SUM ( FactTable[Value] ), FactTable[Category] = "a" ),
    "result2", CALCULATE ( SUM ( FactTable[Value] ), FactTable[Category] = "b" ),
    "result3", CALCULATE ( SUM ( FactTable[Value] ), FactTable[Category] = "c" ),
    "result4", CALCULATE ( SUM ( FactTable[Value] ), FactTable[Category] = "d" )
)

vkongfanfmsft_0-1716430701452.png

 

vkongfanfmsft_1-1716431026018.png

Best Regards,
Adamk Kong

 

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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