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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Qazybek
Frequent Visitor

Reverse calculation in DAX

Dear friends,

 

Does somebody know how to realize reverse calculations in DAX?

 

Like this

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Qazybek,

 

There are lot of difference in dax formula between power bi and excel pivot table, some functions only available to excel and some dax functions only works on power bi side.

 

I don't think a complex formula can works well on them at same time. Can you please share a sample file to test?

 

In addition, you can also take a look at following links about circular dependency:

Avoiding circular dependency errors in DAX

Understanding Circular Dependencies in Tabular and PowerPivot

 

Regards,

Xiaoxin Sheng

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Qazybek,

 

Did you mean unselected items?  If this is a case, you can use dax formula to get reverse selection items to calculate unselected part.

Sample measure:

measure =
VAR list =
    ALLSELECTED ( Table[Column] )
RETURN
    CALCULATE (
        SUM ( Table[Amount] ),
        FILTER ( ALL ( Table ), NOT ( Table[Column] IN list ) )
    )

 

Regards,
Xiaoxin Sheng

Hi @Anonymous,

 

Thank you for the reply! Somehow formulas on my Excel sheet disappeared, so I updated the link 🙂

 

I think that I am very close to the final solution but can't get the final calculation. The error is a circular dependency.

Is there any way to make it differently?

Anonymous
Not applicable

HI @Qazybek,

 

There are lot of difference in dax formula between power bi and excel pivot table, some functions only available to excel and some dax functions only works on power bi side.

 

I don't think a complex formula can works well on them at same time. Can you please share a sample file to test?

 

In addition, you can also take a look at following links about circular dependency:

Avoiding circular dependency errors in DAX

Understanding Circular Dependencies in Tabular and PowerPivot

 

Regards,

Xiaoxin Sheng

Hi @Anonymous,

 

Thank you very much for your help!

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.