简体   繁体   中英

How to stop Power Bi measure from hiding other fields when using the filter function within Dax

I created a measure in Power BI using DAX that gets the total quantity for a specific item in the 'item' column. But when I use that measure in a table in Power Bi, it acts as a filter and hides other items from showing up in the table. How can I handle this? Do I need to create a measure for each item now?

Here is my DAX expression for the measure:

Qty 'item name'= 

Calculate
(
    Sum
    (
        table[qty]
    )
    ,
    FILTER
    (       
        table,
        table[Item]="item name"
    )
)

In the field list of you visual, select Show items with no data option in the field dropdown menu.

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-show-items-no-data

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM