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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Measure showing correct value when displayed in card but not as a title of a graph

Hi all,

 

Having quite a confusing moment with Power BI objects. I create a measure as follows

  • count = CALCULATE(count('Table1'[column1])) 
This measure calculates correctly and is responsive to other filters/slicers when placed in a card. However, when I tried to use it as a title of a graph, suddenly it became non-responsive to filters or other graphs. Any thoughts on this?
 
9 REPLIES 9
v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous Any updates?

 

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If problem still persists, pls let me know.

 

Best Regards,

Community Support Team _ Janey

v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous 

 

According to the sample file you provided, I didn't see any problems, and the slicer can also control its changes. Do you still need help? What kind of result do you want?

vjaneygmsft_0-1630984567082.png

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.


Best Regards,

Community Support Team _ Janey

Ashish_Mathur
Super User
Super User

Hi,

I cannot say why the measure is not working in the title of your graph.  As an observation, you may simplify your measure to:

Count = Count('Table1'[column1])

Hope this helps. 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi Ashish,

 

Thank you for your response! I tried the code and it stil did not work. Actually the initial measure works only on a graph but did not work when i filtered data using the same graph. Is this a bug?

You are welcome.  My proposed amended measure was not intended to solve your question.  I may need to see your file.  Share the download link and show the problem very clearly.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi Ashish,

 

Here's the link to download:

https://drive.google.com/file/d/1_QIA4q_NEFua9qesCqScDYMyfFMbBXwp/view?usp=sharing 

 

Thanks for your help!

 

Hi,

Does this measure work?

Measure var1 title = concatenate("var 1 count = ", format(DISTINCTCOUNT('Table'[var1]), "General Number"))

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi Ashish,

 

Distinctcount does not work either

Then i really do not know what result you want to see there.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Kudoed Authors