Forum Discussion

bondfranco's avatar
bondfranco
Frequent Visitor
5 years ago
Solved

Display column headers with no data Power BI Report Builder with model dataset

Hi All,

I am using the data model for building reports using the power bi report builder. Unfortunately it doesn't show columns with no data unlike the PBI desktop does (Show items with no data setting). I know this could have been possible with a Left join or a cross join in sql but not sure in this case. Can anybody suggest any workaround for this?

 

Thanks in advance.

  • Hi bondfranco ,

     

    Please try this:

    =IIf(IsNothing(Sum(Fields!Sales.Value)),True,False)

     

     

     

    Best Regards,

    Icey

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

1 Reply

  • Icey's avatar
    Icey
    Icon for Community Support rankCommunity Support

    Hi bondfranco ,

     

    Please try this:

    =IIf(IsNothing(Sum(Fields!Sales.Value)),True,False)

     

     

     

    Best Regards,

    Icey

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.