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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Dani_MTY
New Member

Usar Calculate and Disntinc en una formula

Me podrian apoyar, tengo que sacar una formula donde filtre dos cosas

1- La cantidad de trues en una tabla

2- el distinc de los registros que tengan true para ver que sean diferentes personas

Dani_MTY_0-1697752024233.png

En este caso el valor de True seria 3 por que son 3 registros pero ocupo que tenga revise los TTis donde realmente solo son dos personas

 

1 -CALCULATE(COUNTROWS(filter(OTS, OTS[OTS]= TRUE())) /calculate(DISTINCTCOUNT(OTS[IDs]) ))*1
En esta formula ocupo aqui que me saque el Distinc de los TTis: CALCULATE(COUNTROWS(filter(OTS, OTS[OTS]= TRUE())) y ya despues lo demas :/calculate(DISTINCTCOUNT(OTS[IDs]) ))*1
1 REPLY 1
lbendlin
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

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