Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hello - I have created the below measure in which row total is not showing correctly. How can i fix this issue?
Solved! Go to Solution.
Hi @gauravnarchal ,
There are some errors in your code that are causing power bi to not recognize the filters you want correctly.
Maybe you can try this code:
Sale =
SUMX(
'Table',
IF(
[Gross Amount] < 7000,
0,
IF( [Gross Amount] > 100001, 5000, [Gross Amount] * 0.05 )
)
)
result:
Pbix in the end you can refer.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@v-chenwuz-msft - I need your further help on this.
I want to add another condition to this measure where
Hi @gauravnarchal ,
There are some errors in your code that are causing power bi to not recognize the filters you want correctly.
Maybe you can try this code:
Sale =
SUMX(
'Table',
IF(
[Gross Amount] < 7000,
0,
IF( [Gross Amount] > 100001, 5000, [Gross Amount] * 0.05 )
)
)
result:
Pbix in the end you can refer.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@gauravnarchal , Try this
Sale = Sumx(Summarize(Table, Table[ID], "_1" , Switch(True() ,[Gross Amount]<7000,0, [Gross Amount]>100001,5000,([Gross Amount]*.05))), [_1])
Add agent and month if needed to summarize
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
@gauravnarchal , If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Sale = Sumx(Summarize(Table, Table[agent], Table[Month Year], "_1" , Switch(True() ,[Gross Amount]<7000,0, [Gross Amount]>100001,5000,([Gross Amount]*.05))), [_1])
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 42 | |
| 37 | |
| 35 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 67 | |
| 58 | |
| 29 | |
| 27 | |
| 25 |