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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Throgan
Frequent Visitor

Card Visual showing Zero but correct in Desktop

I have a Card visual that shows correctly in Desktop but shows zero in the Service.

 

I verified that the DAX works in desktop, there is data in the table, and I refreshed the data in the workspace and updated the app a few times just to make sure.

 

Has anyone fixed this issue before?

 

Power BI Desktop

Throgan_1-1692202596980.png

 

 

Power BI Service

Throgan_0-1692202498361.png

 

 

If the problem could be a DAX issue:
Here is the DAX I am working with to calculate the percentage of projects needing overtime. The column is Text with TRUE or FALSE as the only values.

 

_ProjectOverTime =
DIVIDE(
CALCULATE(
COUNTROWS(CompletedTable),
FILTER(CompletedTable,CompletedTable[overtime] = "FALSE")
),
CALCULATE(
COUNTROWS(CompletedTable), ALLSELECTED(CompletedTable)
)
) + 0

7 REPLIES 7
Throgan
Frequent Visitor

Thank you for answering so quickly. 😁

The filters are all cleared on the visual and the page.

aj1973
Community Champion
Community Champion

Try also this (delete FILTER from your measure)

 

_ProjectOverTime =
DIVIDE(
CALCULATE(
COUNTROWS(CompletedTable), CompletedTable,CompletedTable[overtime] = "FALSE"
),
CALCULATE(
COUNTROWS(CompletedTable), ALLSELECTED(CompletedTable)
)
) + 0

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

aj1973
Community Champion
Community Champion

In the service, can you Edit the report and open a new page where you can add a Card and the measure please?

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

I created a new page and created a card visual. Added that measure.

No change


Throgan_0-1692206735821.png

 

aj1973
Community Champion
Community Champion

Please delete the FILTER fucntion from the measure

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

I found the issue. 

The service wasn't picking up the change on the column from True/False to Text.

In Transform Data, I switched that column from Text to True/False and then back to Text.

 

When I saved and refreshed, the service had the correct data in the visual.

 

Thank you for your help. 🙂

aj1973
Community Champion
Community Champion

Hi @Throgan 

Is there any filters applied in the service compared to what's in the Desktop?

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors