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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
krishb1414
Helper III
Helper III

Return Dynamic Quarters Q1,Q2 Value

Hi All,

 

I have 4 columns Q1,Q2,Q3,Q4. So based on current quarter it should return respective Q value. 

For example, Currently we are in Febraury, so it should return Q1 value, If we are in May it should return Q2 value and so on dynamically.

 

Note : I don't have Date column in this table

 

Please help me on this. 

 

See the columns below 

Q.png

5 REPLIES 5
johnyip
Solution Sage
Solution Sage

@krishb1414 

 

The entity created is calculated column instead of mesaure.

 

The calculated column returns the values of some existing column of the raw data, depending on current quarter. No aggregration is present. The reason you see aggregration in the pictureis PowerBI by default use SUM aggregration in table. Nonetheless, you can see the sum of the data itself is equivalent to Q2,



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!
johnyip
Solution Sage
Solution Sage

@krishb1414 , not quite sure if I understand your question correctly, but please try below:

 

Create a calculated column using this DAX:

Dymanic column = SWITCH(QUARTER(TODAY()),1,[Q1],2,[Q2],3,[Q3],4,[Q4])

 

and this will be the result:

johnyip_0-1676432954211.png

 

The data I used is like this, [Dymnamic column] is created as per above.

johnyip_1-1676433023218.png

 

 

 



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!

So, How do you calculated [Q1],[Q2],[Q3],[Q4] measures. are they Aggregated ? 

Q1,Q2,Q3,Q4 are raw data, not measures/ calcualted columns.



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!

But how can we pass those columns directly to a measure, we can do that by aggregation functions.

 

How did do you that ?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.