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
Shri_mukherjee
Frequent Visitor

Dynamically populate rows in a dataset based on slicer selection

Hi

 

I have to write a DAX code that will show  for a month number it is an actual or forcast. I tried with selected value, however its not giving the proper result. The condition is that

 

if the month num (from dataset ) in a row <= Month Num in slicer (coming from distict calender table), it should be actual , else forcast.

With the selected value DAX function, I was hoping that the rows will show up right, but it is not. Please help.Screenshot (328).png

1 REPLY 1
harshnathani
Community Champion
Community Champion

@Shri_mukherjee ,

 

Can you share some sample data and expected output.

 

Regards,

Harsh Nathani

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.