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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
qwerttty
Helper I
Helper I

Measure data in calendar

Hi community, 

 

I was wondering how to show the count of the text in the table for either 0 or 1. This seems a really easy task but it does not work.

 

Let me explain in example

qwerttty_0-1694616503769.png

 

In the calendar for 10/9, it should shown 1 for the value which means at that day, there have false in the category. 

All true then 0, if one true and other false should result as 1. 

But the calendar shown the count of the final result. 

 

qwerttty_2-1694616628764.png

Do you have a solution to this issue ?

 

Many thanks

 

 

1 ACCEPTED SOLUTION

Hi @qwerttty ,

 

You're trying to group by directory, right?

As I said earlier, if you place the matrix, you are counting this column, so the result is not what you expect. You need to use the [Final Result] field and choose how the minimum value is aggregated.

62.png

65.png

63.png

64.png

 

Best Regards,

Stephen Tao

 

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

View solution in original post

5 REPLIES 5
v-stephen-msft
Community Support
Community Support

Hi @qwerttty ,

 

If you want to group by date, return True or False, you can try creating a calculated column as follows.

Final Result(T/F) = 
VAR _SUM=CALCULATE(SUM('Table'[Final Result]),FILTER('Table',[Date]=EARLIER('Table'[Date])))
RETURN IF(_SUM=0,TRUE(),FALSE())

vstephenmsft_0-1695027421416.png

And based on my test, for these custom calendar visuals, for measures that return True or False, by default there are only two aggregation methods: "Count (Distinct)" and "Count".

vstephenmsft_1-1695027879675.png

As a workaround, you can put a number type column of 1 or 0 in the calendar visual, and then select the maximum value for the aggregation type. This will achieve the effect of displaying 1 or 0.

vstephenmsft_2-1695028239003.png

88.png

 

 

Best Regards,

Stephen Tao

 

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

Hi @v-stephen-msft ,

 

Would there any method to filter by the category also? 

qwerttty_0-1695029692947.png

And when the Ch4 is True, in the selection of date filter 10 Sep, the matrix shown true, and for other Ch shown false?

qwerttty_1-1695029813916.png

 

Kind regards. 

Hi @qwerttty ,

 

You're trying to group by directory, right?

As I said earlier, if you place the matrix, you are counting this column, so the result is not what you expect. You need to use the [Final Result] field and choose how the minimum value is aggregated.

62.png

65.png

63.png

64.png

 

Best Regards,

Stephen Tao

 

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

amitchandak
Super User
Super User

@qwerttty , check if this can help

Power BI Matrix as Calendar Display & Conditional formatting: https://youtu.be/O93dTEt24ZE

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi @amitchandak ,

 

I was trying the method that you recommend. 

 

I'm using the data stated below. 

qwerttty_2-1694675130301.png

With the matrix calendar, the final result (T/F) should shown in true, and the final result should shown in 0. 

However, from the matrix for calendar, it does not shown what i want. 

qwerttty_1-1694675023230.png

Do you have a solution to this issue ?

 

Many thanks

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.