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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
andreruiz7
New Member

Somases com varíavel dinâmica

preciso executar a soma de valores correspondentes a ele próprio, dentro do referido mês. 

 

como a metragem e contabilizada individualmente por SUC, preciso de uma fórmula que faça com que estes valores sejam os seus totais naquele mês.

andreruiz7_0-1706801012943.png

andreruiz7_1-1706801077333.png

 

exemplo: qual a metragem total da Loja X dentro do mês de Dezembro?

 

lembrando que o valor tanto do "nome fantasia" e "mes ano" é variável, então deve ser feita a leitura individualmente, linha a linha.

 

é possível fazer dentro do Power BI?

3 REPLIES 3
andreruiz7
New Member

Hello

 

someone can help me?

Anonymous
Not applicable

Hi, @andreruiz7 

I'm happy to answer your questions. We can use measure and slicer to find the total area of a certain product in a certain month.

Sample data:

6.png

Click here to create measure:

7.png

The DAX formula of measure is as follows:

Measure = 
CALCULATE(SUMX('Tabelle1','Tabelle1'[ABL Ajustada]+'Tabelle1'[ABL(m2)]),'Tabelle1')

We can use card visual to reflect the total area:

8.png

Dynamically calculate the total area of the asdf store in December through slicer:

9.png

10.png

11.png

The dynamic calculation results are as follows: For example, the total area of the asdf store in December =969.2+108+969.2+84+969.2+108=3207.6:

12.png

I have provided my PBIX file below. If this helps you, that would be great.

 

 

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

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

Jianpeng, thanks for your answer

 

actually, the solution is a little bit more complex... i will show you my original "problem":

 

basically, i have a filter that have to find the square footage (ABL) between an range

 

andreruiz7_1-1706877464676.png

 

 

andreruiz7_0-1706877369829.png

 

but, the power BI logic search is individually by each SUC (its a name gave to the storage that is occupied). so when this filter is applied, i dont find the result, because this storage has multiple SUCs

 

andreruiz7_2-1706877561835.png

 

which is 3 SUCs that combined have 176m².

 

so, in that case, the filter works only when i put the minimun range in 48m², which make the final analysys wrong...

 

thats why in trying to create an "fit square footage" column. The fórmula need to SUM the Square Footage(ABL) in total for the following month, so i can use as a value in my table and correctely be filtered in the selected range.

 

andreruiz7_3-1706877908467.png

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.