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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
KeatonO
Helper II
Helper II

Not Showing Post Publish

Hello all, I have a weird one that has me a little stumped. It's a pretty simple formula and that is why I am so confused about why this is happening. I am counting the number of times each agent is using certain dispositions. I have a Microsoft power apps that the agents place a code, that code gets dumped into a SharePoint table and is then accessed by my power bi to count use. 

Here is the table 

KeatonO_0-1617645727237.png

 

It's line-by-line boolean logic for true or false. 

 

My formula for counting is as follows. 

 

Total 3 Month Hold = calculate(counta('Supplies PIM'[3 Month Hold?]), 'Supplies PIM'[3 Month Hold?] = "True")
Then I have date slicers for timing. 
 
on desktop, it is correct and looks like this. 
KeatonO_1-1617645857968.png

 

When I publish to our company app, it looks like this...

 

KeatonO_2-1617645969229.png

 

There are no changes to the source data, permissions, filters, everything else in the report works just fine but when published, I run into this error.

Any ideas on what I am doing wrong or how to correct it? 

 

 

7 REPLIES 7
v-yiruan-msft
Community Support
Community Support

Hi @KeatonO ,

Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily when they face the similar problem with you. Thank you.

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yiruan-msft
Community Support
Community Support

Hi @KeatonO ,

What data type is the column "Hold for 6 Months?"? Whether it was set as Any? If yes, the values of this column can differ between the Power BI Desktop and the Power BI service after a refresh. In Power BI Desktop, the underlying engine converts the boolean values to strings, retaining TRUE or FALSE values. In the Power BI service, the underlying engine converts the values to objects, and subsequently converts the values to -1 or 0. That's the cause why you got the different result in the Power BI Desktop and the Power BI service... Please review the content in the following links for the details.

Refresh a column of the ANY type containing TRUE/FALSE results in unexpected values

Reports doesn’t show data in Power BI Web service after refresh – Issue with True/False values

Please try to update the formula of your measure as below or update the data type of the column "Hold for 6 Months?" as Text:

Total 3 Month Hold =
CALCULATE (
    COUNTA ( 'Supplies PIM'[3 Month Hold?] ),
    FILTER (
        'Supplies PIM',
        'Supplies PIM'[3 Month Hold?] = -1
            || 'Supplies PIM'[3 Month Hold?] = "True"
    )
)

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
AllisonKennedy
Super User
Super User

@KeatonO  This is a strange one - have you published this report previously? Try changing the name and see if it still gives the same problem, or delete the dataset from Power BI service and republish. If you overwrite a dataset it sometimes can't make all changes unless you delete/start fresh. 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Kind of a pain in the butt to do but it worked! thank you!

KeatonO_0-1617652860343.png

KeatonO_1-1617652901922.png

 

You're welcome! Glad it worked. 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Hello there, I marked the prior comment as a solution. However, today (after the auto-refresh) it has seemingly reverted to having the same issue again. I would need to manually refresh on the desktop and publish daily to get this to work. I, unfortunately, need to find a solution to this long term. 

Nope, it's actually reverted back to the same issue as before. Desktop, it will refresh fine, once published it will error out and show blank on the counts. 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.