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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Total count for Logical value

Hi Team,

 

I have done If logical funtion in New Measure ,
Status_If = If(Value 1 > Value 2, "Above","Below")

After above calculation I need total count Separate for Month wise.

 

Capture.PNG

 

 

Thanks,

KV's

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

Hi  Udt_KV,

Based on your description, I have created a simple data table.

vchenwuzmsft_0-1629941163479.png

 

Two measures:

Above count = COUNTROWS(filter('table','table'[Status if]="Above") )

Below count = COUNTROWS(filter('table','table'[Status if]="Below") )

 

The above are the measures you require to calculate separately, and in order to be consistent with the results in the figure you gave, you need to add another measure

count SKU = COUNTA('table'[SKU])

Then create a table visual and put all these measures into the visual.

 

vchenwuzmsft_1-1629941163482.png

 

Best Regards

Community Support Team _ chenwu zhu

 

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

VahidDM
Super User
Super User

Hi @Anonymous 

 

Try these measures:

 

Above Count = CALCULATE(COUNTA('Table'[Value 1]),filter('Table',[Status_If]="Above"))
 
Below Count = CALCULATE(COUNTA('Table'[Value 2]),filter('Table',[Status_If]="Below"))
 

Did I answer your question? Mark my post as a solution!

Appreciate your Kudos VahidDM_0-1629784590908.png !!

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.