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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Varshini1234567
Frequent Visitor

Power BI DAX addition of new column dynamically or based upon condition

Hi 

 

I am struck in power BI  with one query in my development .

1) I have a dataset named raw data of the below format. I have created a matrix with SetArea -> ProjectGrouped->ProjectName as my hierachy row. 

Varshini1234567_0-1744822359777.png

2) I have a measure named plan which calculates full year sum of value based upon the selected slicer scenario for the present year. Please find the below measure ( Measures[scenario]) is an table which contains unique scenario data 

Plan= var LV = SELECTEDVALUE(measures[Scenario])
 return
 
 CALCULATE(
    sum(table[Sum of Value]),
    table[Scenario]=LV,
    table[Date (Year)]=FORMAT(YEAR(TODAY()),""))
 
Now I have a requirement, User have asked if project B or projectgrouped is <=10 then we need to get those data into "Others" in the matrix. And the Others should only be available if budget,MTP or RBU2 are selected. Others should not come for Actuals. 
Varshini1234567_1-1744823111249.png

 

For now I have tried creating a calculated column named value_grouped =

    CALCULATE(
        SUM(table[Sum of Value]),
        ALLEXCEPT(table, table[SET Area],table[Projects Grouped],table[Scenario],table[Date (Year)]),Raw_Data[Spend/Authorisation]="Spend"
    )
 
Based upon this calculated column I have created other set area column 
 
IF(Raw_Data[Value_Grouped]<=10|| Raw_Data[Value_Grouped] =0||Raw_Data[Value_Grouped]=BLANK(),"Others",table [SET Area])
 
but im not getting the actual result is there any  other way to achieve?
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Varshini1234567 , Other needs to value in your dimension, then you can do that. I have done the same using an additional table, but you can do that with a single table

refer examples

Power BI How to get the P&L formatting right: https://youtu.be/C9K8uVfthUU
Power BI How to get two columns format Profit and Loss Statement(P&L) right: https://youtu.be/WLg85yiMgHI
https://medium.com/microsoft-power-bi/power-bi-formatted-p-l-with-custom-sub-totals-and-blank-rows-e...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Varshini1234567 
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.

Anonymous
Not applicable

Hi @Varshini1234567 
I wanted to check if you had the opportunity to review the information provided by @amitchandak . Please feel free to contact us if you have any further questions. If his response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.

Anonymous
Not applicable

Hi @Varshini1234567 

Thank you for reaching out microsoft fabric community forum.

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

amitchandak
Super User
Super User

@Varshini1234567 , Other needs to value in your dimension, then you can do that. I have done the same using an additional table, but you can do that with a single table

refer examples

Power BI How to get the P&L formatting right: https://youtu.be/C9K8uVfthUU
Power BI How to get two columns format Profit and Loss Statement(P&L) right: https://youtu.be/WLg85yiMgHI
https://medium.com/microsoft-power-bi/power-bi-formatted-p-l-with-custom-sub-totals-and-blank-rows-e...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors