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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
ExcelMonke
Super User
Super User

Developing a model based on changes in a Dimension

Hi Fabric Forum,

Looking for anyone that may have some good ideas on how to best create data models based on calculations and changes in a dimension.

For some detail:

I currently have a Location Dim table, where a column identifies a department as either "Active" or "Inactive". I have measures that calculate a final result based on this "Active" / "Inactive" column. (E.g. amount of sales for all active departments. Note, in this specific case, a department can be inactive and still have sales).

The Goal: 
I want to create a model that would determine the "Active" / "Inactive" status based on a specific calculation. For example, if a department is open x days a week (where x is a variable), change it to "Active" / "Inactive"

The Problem:

I am not sure if calculated columns can handle measure calculations (based on my research, they can't). I also know that this may bog down performance because this is a calculated column that will apply to 100s of different departments

 

Anybody with experience or knowledge willing to shed some light on this?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Read about how to handle SCD2 (slow changing dimensions)

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @ExcelMonke ,

Can you show me you sample dataset?
It's easy to reach your Goal, and here's an example for you:

"Active" / "Inactive" = 
VAR _COUNT =
CALCULATE(
    DISTINCTCOUNT('Fact Table'[Date]),
    ALLEXCEPT('Fact Table', 'Fact Table'[department])
)
RETURN
IF(
    _COUNT >= 'Parameter'[Parameter Value],
    "Active",
    "Inactive"
)

Use this DAX to create a measure or calculated column, and the final output is as below:

vjunyantmsft_0-1709874035360.png

But as for the performance aspect, this needs to be judged specifically based on the amount of data you have and the complexity of the data structure.

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

Hmm unfortunately that will not meet the needs of what I am trying to accomplish. The parameter value is not something that is user-selected. It is based off of a set of measure calculations





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





lbendlin
Super User
Super User

Read about how to handle SCD2 (slow changing dimensions)

Thank you! This was extremely helpful for me to read up on.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.