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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. 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
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

Top Solution Authors