This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA 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.
Hi all,
I have two tables: SUM table and BR table (*table BR has no records)
So, i want to fill BR table with some values from SUM table and also make some calculations.
How can i achieve the desired output?
Solved! Go to Solution.
Hi @cs141005 ,
You could delete the BR table blank value ,then use the following dax to create new column :
Jan MTD1 =
CALCULATE (
SUM ( 'Sum Table'[Jan] ),
FILTER (
ALL ( 'Sum Table' ),
IF ('BR table'[title] = "Users+New client",
'Sum Table'[title] = "New users"
|| 'Sum Table'[title] = "users" ,
IF (
'Sum Table'[title] = "New users",
'BR table'[title] = "New clients" ,
'Sum Table'[title] = 'BR table'[title]
)
)
)
)
FEB MTD1 =
CALCULATE (
SUM ( 'Sum Table'[Feb] ),
FILTER (
ALL ( 'Sum Table' ),
IF ('BR table'[title] = "Users+New client",
'Sum Table'[title] = "New users"
|| 'Sum Table'[title] = "users" ,
IF (
'Sum Table'[title] = "New users",
'BR table'[title] = "New clients" ,
'Sum Table'[title] = 'BR table'[title]
)
)
)
)
Wish it is helpful for you!
Best Regards
Lucien
Hi @cs141005 ,
You could delete the BR table blank value ,then use the following dax to create new column :
Jan MTD1 =
CALCULATE (
SUM ( 'Sum Table'[Jan] ),
FILTER (
ALL ( 'Sum Table' ),
IF ('BR table'[title] = "Users+New client",
'Sum Table'[title] = "New users"
|| 'Sum Table'[title] = "users" ,
IF (
'Sum Table'[title] = "New users",
'BR table'[title] = "New clients" ,
'Sum Table'[title] = 'BR table'[title]
)
)
)
)
FEB MTD1 =
CALCULATE (
SUM ( 'Sum Table'[Feb] ),
FILTER (
ALL ( 'Sum Table' ),
IF ('BR table'[title] = "Users+New client",
'Sum Table'[title] = "New users"
|| 'Sum Table'[title] = "users" ,
IF (
'Sum Table'[title] = "New users",
'BR table'[title] = "New clients" ,
'Sum Table'[title] = 'BR table'[title]
)
)
)
)
Wish it is helpful for you!
Best Regards
Lucien
@cs141005
You need to create a new table with the following code:
BR Table =
UNION(
'SUM TABLE',
ROW( "Title", {"New Users + Users"},"Jan", CALCULATE(SUM('SUM TABLE'[Jan]),'SUM TABLE'[Title] IN {"New Users", "Users"})
,"Feb", CALCULATE(SUM('SUM TABLE'[Feb]),'SUM TABLE'[Title] IN {"New Users", "Users"}))
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 32 | |
| 26 | |
| 21 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 65 | |
| 43 | |
| 28 | |
| 22 | |
| 22 |