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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
sakuragihana
Helper IV
Helper IV

How to sum value from 2 table without relation ?

Hello everyone, I have 2 table below : 

Table 1 : 

sakuragihana_3-1677035530803.png

Table 2 : 

sakuragihana_5-1677036437399.png

 

 

I post a plib in that link :https://drive.google.com/file/d/1i_KvhMvTM1HVo95eszcauvlLFLG2FRj2/view?usp=sharing 

 

How can I add the provinces in table 2 (Campus Code is Unspecified) respectively to table 1 (as same as Province Name) ? Can everyone help me a dax ?

Table 1 like : 

sakuragihana_4-1677036334700.png

 

 

 

9 REPLIES 9
CNENFRNL
Community Champion
Community Champion

Simple enough, use TREATAS() to create virtual relationship on the fly if the perfomance is not a big concern.


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Hi @CNENFRNL , 

Can you help me ?

Paste well-prepared mock-up data first.


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Hi @CNENFRNL , 

 

I fix this pibx link: https://drive.google.com/file/d/1v5l0TgW5xPf0o5IqxBqPHSJ59jM-fP-8/view?usp=share_link 

Sorry for inconvenience. Thank you 

CNENFRNL_0-1677211261525.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Hi @CNENFRNL , 

I want to Sum value from table 2 into table 1 and don't show the row Unspecified . 

Example :

sakuragihana_0-1677212326940.png

 

 

Hi @CNENFRNL , 

I don't know how to use TREATAS , can you see the pibx I attached and help me 

amitchandak
Super User
Super User

@sakuragihana , You need to create common dimensions like Province Name, date tec

 

https://amitchandak.medium.com/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-solutio...

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi @amitchandak ,

I want to sum value from Table 2 that Campus Code is unspecified into Table 1 (respectively Province Name ) . I don't want to show Unspecified in the table 1

Table 1 like as : 

sakuragihana_0-1677050695792.png

Can you help me a dax ?

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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