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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
anacarol84
Frequent Visitor

What-if Parameter

Hello all,
 
I am working on a report that contains what-if parameter.
 
I need to increase the amount of the slicers value from 1000 to millions, but I cannot find a solution due to a PowerBI what-if parameter limitation, and I need some guidance around this issue. The slicers need to be from 0 to millions.
 

Any Ideas, please?

 
Thanks
1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

@anacarol84 create it by yourseld from scratch.
You can create a parameter table list this in Power Query, start from blank query, write this formula and then convet to table and import it:

SpartaBI_0-1655380810421.png

After that just create that measure that does max on that column and you have the same numeric paramter table.


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

View solution in original post

5 REPLIES 5
anacarol84
Frequent Visitor

Hi @SpartaBI ,

 

Thak you for posting the solution, but for me didnt work how I wanted, so I used a different solution to solve my issue.

 

Thanks anyways

Hi @anacarol84 

I am also having similar issue with What If Parameter input. May I know the solution you have used for your issue?
Apprciate your help on this.

Thanks



Hello, I am sorry for the late reply. I was on Maternity leave.

I created a calculation using this DAX:

Param Indirect Cost =
VAR StartValue = 1000
VAR Increment = StartValue
VAR EndValue = StartValue * 50000
RETURN
GENERATESERIES ( StartValue, EndValue, Increment )

anacarol84_0-1676449840454.png

 

 

 

Happy you solved it 💪

SpartaBI
Community Champion
Community Champion

@anacarol84 create it by yourseld from scratch.
You can create a parameter table list this in Power Query, start from blank query, write this formula and then convet to table and import it:

SpartaBI_0-1655380810421.png

After that just create that measure that does max on that column and you have the same numeric paramter table.


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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