Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
currently I have a data concept like this that I insert in the power bi matrix
Rows
Project
Account
Column
Date
Value
AMount
i want to change the amount from the rain/day account to a formula
fill in the formula Factor Slippery*Total Hujan
what kind of formula should I use, please help
Solved! Go to Solution.
Hi, @PTSS
I restored some data and hope it matches your situation.
Sample data:
Measure =
VAR _N1 =SUM ( 'Table'[Amount] )
VAR _N2 =
CALCULATE (SUM ( 'Table'[Amount] ),
FILTER (ALL ( 'Table' ),
[Account] = "Factor Slippery"
&& [Date] = SELECTEDVALUE ( 'Table'[Date] )))
VAR _N3 =
CALCULATE (SUM ( 'Table'[Amount] ),
FILTER (ALL ( 'Table' ),
[Account] = "Total Hujan"
&& [Date] = SELECTEDVALUE ( 'Table'[Date] )))
RETURN
IF ( _N1 = BLANK (), _N2 * _N3, _N1 )
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @PTSS
I restored some data and hope it matches your situation.
Sample data:
Measure =
VAR _N1 =SUM ( 'Table'[Amount] )
VAR _N2 =
CALCULATE (SUM ( 'Table'[Amount] ),
FILTER (ALL ( 'Table' ),
[Account] = "Factor Slippery"
&& [Date] = SELECTEDVALUE ( 'Table'[Date] )))
VAR _N3 =
CALCULATE (SUM ( 'Table'[Amount] ),
FILTER (ALL ( 'Table' ),
[Account] = "Total Hujan"
&& [Date] = SELECTEDVALUE ( 'Table'[Date] )))
RETURN
IF ( _N1 = BLANK (), _N2 * _N3, _N1 )
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-zhangti
Please help me.
I want to add formula in capex = slippery/100. how to if add 2 conditions in amount?
amazing solution...
but can you help me again, how do you do it if the capex account value is not the same as slippery because the capex value is also 0.
and I want to add a formula in capex from slippery/100
thankyou
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
75 | |
60 | |
37 | |
33 |
User | Count |
---|---|
102 | |
56 | |
52 | |
46 | |
40 |