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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
haniizz
Helper II
Helper II

Help with unique values

Hello Community 

I need your kind help , how can I get the unique value to measure the ( number of Cycles ) when I have like this data

ProjectcyclecountryBudgetStatus

Project1

1USA1,000000

Done

Project11India1,500000Done
Project12USA2,500000Done
Project21USA1,003000Done
Project22USA1,500000Done
Project23USA2,000000Done
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @haniizz ,

 

You can use the following functions:

Measure 2 =
var _table=
SUMMARIZE(
    ALL('Table'),[Project],[cycle],[country])
return
COUNTX(
    _table,[cycle])

While calculating the data you provided, I noticed a small discrepancy that I would like to share with you, regarding the USA's de-emphasized data that should be equal to 5, and in adding India's data, the sum is 6

vyangliumsft_0-1707824728921.png

 

Best Regards,

Liu Yang

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

4 REPLIES 4
Anonymous
Not applicable

Hi  @haniizz ,

 

You can use the following functions:

Measure 2 =
var _table=
SUMMARIZE(
    ALL('Table'),[Project],[cycle],[country])
return
COUNTX(
    _table,[cycle])

While calculating the data you provided, I noticed a small discrepancy that I would like to share with you, regarding the USA's de-emphasized data that should be equal to 5, and in adding India's data, the sum is 6

vyangliumsft_0-1707824728921.png

 

Best Regards,

Liu Yang

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

this is perfect

thank you for your help I appreciate

Anonymous
Not applicable

Hi  @haniizz ,

 

Here are the steps you can follow:

1. Create measure.

Measure =
CALCULATE(
    DISTINCTCOUNT('Table'[cycle]),ALL('Table'))

2. Result:

vyangliumsft_0-1707788558571.png

 

Best Regards,

Liu Yang

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

thank you dear Liu
in fact this should not be 3 , 
in USA we have 2 cycles in project 1 + 3 cycles in project 2 = 6 unique cycles
in India we have 1 cycle in project 1 = 1 unique project
the total should be 7

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.