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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
LotteLaugesen
Helper V
Helper V

Strange numbers in SELECTCOLUMNS(CALENDAR....

Hi
I'm trying to create a Normal distribution chart, but are having some problems with the SELECTCOLUMNS(CALENDAR,
These are my measures:

LotteLaugesen_0-1732803580210.png

 

Normal Distribution =
VAR MinValue = FLOOR([x-3a],1)
VAR MaxValue = CEILING([x+3a],1)
RETURN SELECTCOLUMNS(CALENDAR(MinValue,MaxValue),"X",INT([Date]))

Output (53 strange rows):
LotteLaugesen_1-1732804232147.png


When I hardcode 74 as MinVlue and 77 as MaxValue it looks correct

LotteLaugesen_3-1732804326569.png

Can anybody tell me what I'm doing wrong?
BR

Lotte


 







2 REPLIES 2
PaulOlding
Solution Sage
Solution Sage

Hi @LotteLaugesen 

A couple of things spring to mind here:

1. Creating a table based on the value of measures isn't going to work.  Tables are created during dataset refresh only, so will not be dynamic based on the measure values at report run time.

2. GENERATESERIES seems like a more appropriate function to use rather than CALENDAR.

GENERATESERIES(MinValue, MaxValue, 1)
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information. Do not include anything that is unrelated to the issue or question.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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