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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Table with Dynamic Column

I have a table which needs to use a user's selection on a calculated column. The calculated column is used to calculate another columns.

I know is not possible to create columns with measures or dynamic values, so I'm trying to figure out a way to calculate this column with measures.

I already tried using a measure for the calculated column (below) and them using that measure to calculate another columns I need as measures.

"measure Data Considerada ABERTO" = EOMONTH(MAX('Table2'[ReferenceDate]), 0) + 3.

The result for both static and dynamic table (with measures) are show below.

gasilva8_1-1669031552780.png

gasilva8_2-1669031633458.png

The problem is that that I have some categories, and I need to summarize the table by them as a sum of each column. But instead of counting, it seems to be getting the first value of each category "Centro" (desconsidering the Date Column), as you can see below. What should I do to get the total value?

gasilva8_3-1669031886924.png

1 ACCEPTED SOLUTION

Hi, @Anonymous 

 

Is this the result you expect? There is no direct relationship to the date column.

vzhangti_0-1669193552501.png

 

Best Regards,

Community Support Team _Charlotte

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

4 REPLIES 4
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

Based on the data you provided, can you give 2 examples of what your desired output is? Sensitive information can be removed in advance. You can also show it with Excel.

 

Best Regards,

Community Support Team _Charlotte

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

Anonymous
Not applicable

Hi @v-zhangti 

 

Refer to this sample, please.

 

User input: 30/04/2022

"Data Considerada" = "User input" + 3
"O-Q" = "Data Considerada" - "Data-base fim"

 

Input:

Order ID   Category   Data-base fim   Data Considerada   O-Q   B Plan   Critico   B Critico   
100104/10/202103/05/2022211101
200124/01/202203/05/202299100
300124/01/202203/05/202299100
400114/03/202203/05/202250101
500107/03/202203/05/202257100
600123/11/202103/05/2022161100
700120/11/202103/05/2022164110
800208/11/202103/05/2022176100
900206/12/202103/05/2022148100
1000206/12/202103/05/2022148100
1100213/12/202103/05/2022141110
1200215/11/202103/05/2022169110
    Total1232

 

Output

Category   Sum of B Plan   Sum of Critico   Sum of B Critico   
001712
002520
Total1232

 

It doesn't need necessarily to show total on the table.

What I do need is a total to show in a card visual. But if a insert "B Plan" in a card, for example, it doens't show the total = 12.

I also need these results to sum to another measures from another table.

Hi, @Anonymous 

 

Is this the result you expect? There is no direct relationship to the date column.

vzhangti_0-1669193552501.png

 

Best Regards,

Community Support Team _Charlotte

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

Greg_Deckler
Community Champion
Community Champion

@Anonymous First, please vote for this idea: https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e

This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

Also: https://youtu.be/uXRriTN0cfY
And: https://youtu.be/n4TYhF2ARe8



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.