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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Anonymous
Not applicable

Dynamic Calculation Flag

Hello everyone,

I am new to the forum and have already had a few search attempts, which unfortunately were not very successful.

That's why I'm trying a new post.

 

 

I have a fact table. It contains the following information.

YearMonthArticle Revenue ActRevenue LY
20241123500 
20242123 500
20243123500500

 

Now the problem:

I should build a dynamic flag, if I select a month in the dashboard. e.g. "1" then the flag gets the value "0". Since the row had no value in the last year. If I select the month "3", then I get a value of 1 in the flag.

 

This would then result in the following table:

 

YearMonthArticle Revenue ActRevenue LYFlag
20241123500 0
20242123 5000
202431235005001

 

However, the flag is now static. I would like the flag to be dynamically set, if I select more than 1 month in the dashboard.

 

Example:

I select the first 3 months of the year. Then the article was sold in the first 3 months and should be taken into calculation.

I would like to be able to continue calculating with the flag later.

 

Thanks in forward!

 

Cheers

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

 

I don't quite understand what you mean, is the "1" January or 1 month, which of the "1's" are selected to return 0, and what does the 1 in tag mean.

 

Best regards,
Community Support Team_ Scott Chang

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

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.