Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I want to add the G/L value (red column) to only the column number 1 in matrix table and not to show on the other columns like the pic.
I added it as measure but it appear om all coumns
the point is it possible to apply it to just the first column or not
Solved! Go to Solution.
Hi @Ahmed_Gamal ,
I think your table maybe like this:
Please create two new columns:
G/L = SWITCH(
TRUE(),
'Table'[Cost] < 0 && 'Table'[Journal Name] = 1, "G",
'Table'[Cost] > 0 && 'Table'[Journal Name] = 1, "L")
New_percent = IF('Table'[Percent] <> BLANK(), 'Table'[Percent]*100 & "%")
Create a new table:
Table 2 =
UNION(
SELECTCOLUMNS('Table',"Journal Name",[Journal Name],"Group Name",[Group Name],"Type","Cost","Value",[Cost]),
SELECTCOLUMNS('Table',"Journal Name",[Journal Name],"Group Name",[Group Name],"Type","Percent","Value",[New_percent]),
SELECTCOLUMNS('Table',"Journal Name",[Journal Name],"Group Name",[Group Name],"Type","G/L","Value",[G/L])
)
You will get a new table like this. Please note: the type of value column is text.
I think this is the result uou want:
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Ahmed_Gamal ,
I think your table maybe like this:
Please create two new columns:
G/L = SWITCH(
TRUE(),
'Table'[Cost] < 0 && 'Table'[Journal Name] = 1, "G",
'Table'[Cost] > 0 && 'Table'[Journal Name] = 1, "L")
New_percent = IF('Table'[Percent] <> BLANK(), 'Table'[Percent]*100 & "%")
Create a new table:
Table 2 =
UNION(
SELECTCOLUMNS('Table',"Journal Name",[Journal Name],"Group Name",[Group Name],"Type","Cost","Value",[Cost]),
SELECTCOLUMNS('Table',"Journal Name",[Journal Name],"Group Name",[Group Name],"Type","Percent","Value",[New_percent]),
SELECTCOLUMNS('Table',"Journal Name",[Journal Name],"Group Name",[Group Name],"Type","G/L","Value",[G/L])
)
You will get a new table like this. Please note: the type of value column is text.
I think this is the result uou want:
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Ahmed_Gamal ,
you can use the conditional formatting on a measure ( green if gain, red if loss) and maybe putting the journal name in the row, not in the column.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
the same problem
the colors set to the all columns not only the first one
header of multiple layers and merged cells are really not friendly to data analysis. what is your expected result?
i want a (gain or lose by if function) for the first coulmn only according to the cost value.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
96 | |
69 | |
43 | |
38 | |
29 |
User | Count |
---|---|
154 | |
93 | |
63 | |
42 | |
41 |