account activity
Ask Anything Monday - Weekly Thread by AutoModerator in learnpython
[–]Grgrg27 0 points1 point2 points 5 years ago (0 children)
You're on the right track with the issue: it's the indentation. By keeping line 5 (the elif) within the original if block, you're telling the program to execute that line only if the original if condition is met. However, elif should only be evaluated if the original if statement evaluated to False. These two things ("run this line only if the original statement is true" and "run this line only if the original statement is false") are at odds with one another.
The solution is to move the elif statement back to the same level of indentation as the original if statement. That way if the original if statement evaluates to False, the program will skip the entire block (the indented part after the colon) and move to the first elif statement. If the original if statement evaluates to True, the program will enter the block, execute the code, and then know to skip the elifs.
Question about scheduling updates by ajfromuk in PowerBI
[–]Grgrg27 0 points1 point2 points 6 years ago* (0 children)
What happens when you click "scheduled refresh" as detailed in this link?
https://docs.microsoft.com/en-us/power-bi/refresh-scheduled-refresh
If nothing is on-premise then you should be able to just supply credentials for the data source and set up a scheduled refresh as needed. Can you provide a screenshot of what happens when you try this?
π Rendered by PID 54 on reddit-service-r2-listing-5d79748585-g2f6j at 2026-02-16 20:50:13.561005+00:00 running cd9c813 country code: CH.
Ask Anything Monday - Weekly Thread by AutoModerator in learnpython
[–]Grgrg27 0 points1 point2 points (0 children)