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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
dfs29
Helper I
Helper I

Filter ALL

Hello, 

 

I have a problem : 

I created a measure with calculate and all like this :

_test = CALCULATE([_Total (hm)],ALL('cache Activite_Hiera'[tact_code])) "

 

But the result is not what I want ....  because I would like to have 498:15:00 for each rows of _test column and not the same result that my column "total(hm)"

 

dfs29_0-1665403645499.png

 

1 ACCEPTED SOLUTION

Hi, @dfs29 

Plesase try measure formula like:

 

_test =
SUMX ( VALUES ( 'cache Activite_Hiera'[CO] ), [_Total (hm)] )

 

Best Regards,
Community Support Team _ Eason

View solution in original post

6 REPLIES 6
dfs29
Helper I
Helper I

Is there anyone to help me please ?

aj1973
Community Champion
Community Champion

If you share a sample of your PBIX

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

@aj1973 

this the first exemple with 

_test = CALCULATE([_HM],ALL('cache Activite_Hiera'[CO]) )

dfs29_0-1665470972390.png

And my second exemple with your suggestion 

_test = CALCULATE([_HM],ALL() )

 

dfs29_1-1665471059373.png

And I would like to have the same number of the column_HM in _test 

So who can help me pleaseee 

 

Best regards 

 

Hi, @dfs29 

Plesase try measure formula like:

 

_test =
SUMX ( VALUES ( 'cache Activite_Hiera'[CO] ), [_Total (hm)] )

 

Best Regards,
Community Support Team _ Eason

dfs29
Helper I
Helper I

I tried but I don't have the result that I want because I would like to have 498:15:00 but with your suggestion I have the sum of all my data....

 

dfs29_0-1665405913862.png

 

aj1973
Community Champion
Community Champion

Hi @dfs29 

try this

 _test = CALCULATE([_Total (hm)],ALL())

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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