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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
jnaugle
Helper I
Helper I

Help with Row Display

jnaugle_0-1623949405806.png

In the above table I would like to not have the QTY on SO duplicated in each row just display the total. Is there away for me to do this?

 Looks like when I have the filter set then it displays the way I need. 

jnaugle_1-1623949677552.png

 

9 REPLIES 9
v-angzheng-msft
Community Support
Community Support

Could you please consdier sharing more details about it or a simple sample file without any sesentive information for further discussion? Thank you.

How to provide sample data in the Power BI Forum 

v-angzheng-msft
Community Support
Community Support

Hi, @jnaugle 

May I ask if your problem has been solved? Is the above answer helpful to you?
If it helps, could you please mark the response which help as Answered? It will help the others in the community find the solution easily if they face the same problem with you. Thank you.

DataInsights
Super User
Super User

@jnaugle,

 

You can use the HASONEVALUE function. Since the total row has more than one Item Location, this measure will display the quantity for only the total row:

 

QTY SO = IF ( NOT HASONEVALUE ( Table[Item Location] ), SUM ( Table[QTY on SO] ) )

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




The only issue with this solution is that once the user applies the location filter the SO Quantity is not populated

jnaugle_0-1624283451677.png

 

jnaugle_1-1624283479356.png

Any Ideas?

@jnaugle,

 

Try this measure:

 

QTY SO = 
VAR vLocationCountAll =
    COUNTROWS (
        CALCULATETABLE (
            VALUES ( 'Table'[Item Location] ),
            ALL ( 'Table'[Item Location] )
        )
    )
VAR vLocationCountSlicer =
    COUNTROWS ( ALLSELECTED ( 'Table'[Item Location] ) )
VAR vHasSlicerSelection =
    IF ( vLocationCountAll = vLocationCountSlicer, 0, 1 )
VAR vResult =
    SWITCH (
        vHasSlicerSelection,
        1, SUM ( 'Table'[QTY on SO] ),
        0, IF ( NOT HASONEVALUE ( 'Table'[Item Location] ), MAX ( 'Table'[QTY on SO] ) )
    )
RETURN
    vResult

 

DataInsights_0-1624290694826.png

--------------------------------------------------------------

DataInsights_1-1624290718076.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




jnaugle_0-1624296626987.png

still duplicates when no filters applied.  Maybe I missed something on the Dax.

 

QTY SO =
VAR vLocationCountAll =
COUNTROWS (
CALCULATETABLE (
VALUES ( ItemLedgerEntries[Item Location] ),
ALL ( 'ItemLedgerEntries'[Item Location] )
)
)
VAR vLocationCountSlicer =
COUNTROWS ( ALLSELECTED ( 'ItemLedgerEntries'[Item Location] ) )
VAR vHasSlicerSelection =
IF ( vLocationCountAll = vLocationCountSlicer, 0, 1 )
VAR vResult =
SWITCH (
vHasSlicerSelection,
1, SUM ( Sales_Order_Line[Quantity] ),
0, IF ( NOT HASONEVALUE ( 'ItemLedgerEntries'[Item Location] ), MAX ( 'Sales_Order_Line'[Quantity]] ) )
)
RETURN
vResult

 

 

jnaugle_1-1624297207391.png

I have this error

ok so now dax errors at this point but the result is still the same .  Duplicate data in the rows

 

jnaugle_0-1624297812316.png

 

@jnaugle,

 

I would need to see your data model. Can you provide a link to your report? You can provide sample data that illustrates the issue.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.