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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
pong
Regular Visitor

PowerBI parameters like in tableau

In Tableau, I would often use a parameter to do the following:
I have columns for [Age] and [$owed]

What I want to do is to create a parameter that has an integer value for days (7, 14, 30).

Then I will create a column that would go:
If [Age] <= [parameter]

THEN [$ owed]

ELSE "-"

END

This would allow me to create a table to show all invoices that are aged to the parameter selected. If I selected 7 on parameter, then the table would show all invoices between now and 7 days and so forth.

 

How can I do this with powerbi?

 
 
1 ACCEPTED SOLUTION

Hi @pong 
There is no option just to put a number, you should define the range of the list and the size of the "increment".

Ritaf1983_0-1719284726086.png

and then you will get a slicer according to these modifications

You can use a slicer / enter the wanted value to test 

Ritaf1983_1-1719284801680.png

The pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

View solution in original post

6 REPLIES 6
Kishore_KVN
Super User
Super User

Hello @pong , 

This concept is already available called as numeric range in parameters. Please look at below youtube video for reference:

Power BI- How to create custom numeric range Slicer Using Parameter | Increase in Percentage - YouTu...

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

Hello, this solution almost gets me what I need. In the solution, they are using increment values. I'm looking to do the same thing but with discrete values. For example, I want to use a what-if parameter while using a slicer to select 7, 14, 30, and 90 days. Would this be possible?

 
Ritaf1983
Super User
Super User

Hi @pong 

It sounds like what-if parametrs, please refer to the linked tutorial:

https://www.youtube.com/watch?v=28PDdA3SROU

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Yes, what-if parameters is what I'm trying to use. My main problem is using it with discrete values or values I can input myself. For example, I want to use numbers for 7, 14, 30, and 90. How can I achieve this?

 

Hi @pong 
There is no option just to put a number, you should define the range of the list and the size of the "increment".

Ritaf1983_0-1719284726086.png

and then you will get a slicer according to these modifications

You can use a slicer / enter the wanted value to test 

Ritaf1983_1-1719284801680.png

The pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

rajendraongole1
Community Champion
Community Champion

Hi @pong - can you please refer the below youtube link:

Tableau vs. Power BI: Using Parameters and DAX for Data Analysis and Visualization (youtube.com)

 

resolved reference link:

Solved: How to replicate Parameters (tableau) in Power BI? - Microsoft Fabric Community

 

Hope it helps.

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors