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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
SAM_
New Member

Measure Column to Count based on Condition

Dear All,

 

I am having the below table and I had created and want to have only one single Measure Column that tells about total number of Rows having for Sptin6 and total number rows in sprint5 ,Sprint4 etc...

 

can any one please help me how can I get it.

 

SnoIssuesStatusSprint
1768DoneSprint6
2888DoneSprint6
3666QA in ProgressSprint6
4999Deployed in ProdSprint6
5567DoneSprint5
6900DoneSprint5
7100In-ProgressSprint5


Thanks & Regards,

SAM_

2 ACCEPTED SOLUTIONS
Uzi2019
Super User
Super User

Hi @SAM_ 
Either take sprint 2 times in a table then change the aggregatiopn of 2nd sprint to count.

Uzi2019_0-1712118193597.pngUzi2019_1-1712118223719.png

 

Or you can create measure seperately for Sprint count

Measure count = COUNT(SAM[Sprint])

 

Uzi2019_2-1712118359488.png

 

 

I hope I answered your question!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

View solution in original post

v-tianyich-msft
Community Support
Community Support

Hi @SAM_ ,

 

Thanks to @Uzi2019  solution, if you don't want to create a new table, you can refer to the following solution:

vtianyichmsft_0-1712209598454.png

Count = var _t = ADDCOLUMNS('Table',"Count",COUNTAX(FILTER(ALL('Table'),[Sprint]=EARLIER([Sprint])),[Sno]))
RETURN MAXX(_t,[Count])

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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-tianyich-msft
Community Support
Community Support

Hi @SAM_ ,

 

Thanks to @Uzi2019  solution, if you don't want to create a new table, you can refer to the following solution:

vtianyichmsft_0-1712209598454.png

Count = var _t = ADDCOLUMNS('Table',"Count",COUNTAX(FILTER(ALL('Table'),[Sprint]=EARLIER([Sprint])),[Sno]))
RETURN MAXX(_t,[Count])

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

 

Uzi2019
Super User
Super User

Hi @SAM_ 
Either take sprint 2 times in a table then change the aggregatiopn of 2nd sprint to count.

Uzi2019_0-1712118193597.pngUzi2019_1-1712118223719.png

 

Or you can create measure seperately for Sprint count

Measure count = COUNT(SAM[Sprint])

 

Uzi2019_2-1712118359488.png

 

 

I hope I answered your question!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
Ashish_Mathur
Super User
Super User

Hi,

Drag Sprint to a Table visual and write this measure

Measure = countrows(Data)

Hope this helps.


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

@Ashish_Mathur  I am getting the total rows , But I am required to get the rows based on the sprint

I do not understand.  Show the expected result very clearly.


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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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