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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
jimmy69
Frequent Visitor

La tabla que creo en power bi, el resultado total de usuarios respecto al % de usuarios calcula >100

TaulaEdats =
VAR TotalUsuarios =
    CALCULATE(
        DISTINCTCOUNT(Any2023[ID de usuario]),
        FILTER(
            Any2023,
            NOT(ISBLANK(Any2023[Edad del usuario]))
        )
    )
RETURN
    ADDCOLUMNS (
        SUMMARIZE (
            FILTER(
                Any2023,
                NOT(ISBLANK(Any2023[Edad del usuario]))
            ),
            Any2023[Edad del usuario],
            "Total usuaris", CALCULATE(
                DISTINCTCOUNT(Any2023[ID de usuario])
            )
        ),
        "% Total",
        DIVIDE (
            [Total usuaris],
            TotalUsuarios
        ) * 1
    )
 
Tabla creada:

Edad del usuario|| Total usuaris|| % Total
16326,41%
17408,02%
18214,21%
19183,61%
20122,40%
21122,40%
2281,60%
23204,01%
2471,40%
25122,40%
2681,60%
2771,40%
28132,61%
29132,61%
30316,21%
31122,40%
32102,00%
3371,40%
3461,20%
35102,00%
3681,60%
3740,80%
3891,80%
3991,80%
4091,80%
41102,00%
4291,80%
4381,60%
44132,61%
45142,81%
46183,61%
47142,81%
4871,40%
49173,41%
5091,80%
5171,40%
5251,00%
5371,40%
5451,00%
5551,00%
5661,20%
5730,60%
5830,60%
5910,20%
6040,80%
6120,40%
6230,60%
6310,20%
6510,20%
6610,20%

 

 

 

511102%

 

El total usuarios es correcto, pero el calcul de la proporcion, lo hace sobre 499 usuarios.

 

Alguna idea.

 

Gracias

 

2 ACCEPTED SOLUTIONS

Hi,

I transform yours calculated column in explicit measures and now it's working properly.
See the result and measures:

_AAndrade_0-1709117114468.png

_AAndrade_1-1709117200162.png

I hope this help you and solve the problem.





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




View solution in original post

jimmy69
Frequent Visitor

Very good !!

 

Thanks ...

View solution in original post

6 REPLIES 6
jimmy69
Frequent Visitor

Very good !!

 

Thanks ...

_AAndrade
Super User
Super User

Hi,

On the part bellow try to replace the DISTINCTCOUNT(Any2023[ID de usuario]) to [Total usuaris] and see if it solves your problem.

_AAndrade_0-1709109153232.png

 





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




No funciona, no acepta poner [Total Usuaris]

Can you share a pbix file to try help you?





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Como comparto el archivo?

 

Hi,

I transform yours calculated column in explicit measures and now it's working properly.
See the result and measures:

_AAndrade_0-1709117114468.png

_AAndrade_1-1709117200162.png

I hope this help you and solve the problem.





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.